Class BrushSettings
Editable fill settings (a solid color or a two-color gradient) for indicator and chart properties. RenderObject is rebuilt as a RenderBrush whenever a property changes.
public class BrushSettings : RenderSettingsBase<RenderBrush>
- Inheritance
-
objectBrushSettings
- Extension Methods
Constructors
BrushSettings()
public BrushSettings()
Properties
EndColor
Gets or sets the second color of the gradient; used only when UseEndColor is true. In classic WPF it is a WPF color.
[Display(ResourceType = typeof(Strings), Name = "EndColor", Order = 2)]
public Color EndColor { get; set; }
Property Value
- Color
StartColor
Gets or sets the solid fill color or the first color of the gradient. In classic WPF it is a WPF color.
[Display(ResourceType = typeof(Strings), Name = "StartColor", Order = 1)]
public Color StartColor { get; set; }
Property Value
- Color
UseEndColor
Gets or sets whether the fill is a gradient from StartColor to EndColor; when false only StartColor is used.
[Display(ResourceType = typeof(Strings), Name = "UseEndColor", Order = 3)]
public bool UseEndColor { get; set; }
Property Value
- bool
Methods
Clone()
Creates a new settings object with the same property values. The copy builds its own render object.
public override object Clone()
Returns
- object
The copy.
CreateDefaultRenderObject()
Returns a transparent solid brush, used until a property is changed.
protected override RenderBrush CreateDefaultRenderObject()
Returns
- RenderBrush
A transparent RenderBrush.
GenerateRenderObject()
Generates the render object based on the current settings.
protected override RenderBrush GenerateRenderObject()
Returns
- RenderBrush
The generated render object.