Table of Contents

Class LinearGradientBrushExtension

Namespace
HelixToolkit.Wpf
Assembly
HelixToolkit.Wpf.dll

Markupextension for LinearGradientBrush

public sealed class LinearGradientBrushExtension : MarkupExtension
Inheritance
LinearGradientBrushExtension
Inherited Members

Examples

Background={helix:LinearGradientBrush Black,White}

Constructors

LinearGradientBrushExtension(Color, Color)

Initializes a new instance of the LinearGradientBrushExtension class.

public LinearGradientBrushExtension(Color startColor, Color endColor)

Parameters

startColor Color

The start color.

endColor Color

The end color.

LinearGradientBrushExtension(Color, Color, double)

Initializes a new instance of the LinearGradientBrushExtension class.

public LinearGradientBrushExtension(Color startColor, Color endColor, double angle)

Parameters

startColor Color

The start color.

endColor Color

The end color.

angle double

The angle.

Methods

ProvideValue(IServiceProvider)

Returns the linear gradient brush.

public override object ProvideValue(IServiceProvider serviceProvider)

Parameters

serviceProvider IServiceProvider

Object that can provide services for the markup extension.

Returns

object

The brush to set on the property where the extension is applied.