Class Brush
Describes how an area is painted.
[TypeConverter(typeof(BrushConverter))]
public abstract class Brush : Animatable, INotifyPropertyChanged, IBrush
- Inheritance
-
Brush
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
Brush()
protected Brush()
Fields
OpacityProperty
Defines the Opacity property.
public static readonly StyledProperty<double> OpacityProperty
Field Value
TransformOriginProperty
Defines the TransformOrigin property
public static readonly StyledProperty<RelativePoint> TransformOriginProperty
Field Value
TransformProperty
Defines the Transform property.
public static readonly StyledProperty<ITransform?> TransformProperty
Field Value
Properties
Opacity
Gets or sets the opacity of the brush.
public double Opacity { get; set; }
Property Value
Transform
Gets or sets the transform of the brush.
public ITransform? Transform { get; set; }
Property Value
TransformOrigin
Gets or sets the origin of the brush Transform
public RelativePoint TransformOrigin { get; set; }
Property Value
Methods
OnPropertyChanged(AvaloniaPropertyChangedEventArgs)
Called when a avalonia property changes on the object.
protected override void OnPropertyChanged(AvaloniaPropertyChangedEventArgs change)
Parameters
change
AvaloniaPropertyChangedEventArgsThe property change details.
OnUnreferencedFromCompositor(Compositor)
protected virtual void OnUnreferencedFromCompositor(Compositor c)
Parameters
Parse(string)
Parses a brush string.
public static IBrush Parse(string s)
Parameters
s
stringThe brush string.