Class VisualBrush
Paints an area with an Visual.
public sealed class VisualBrush : TileBrush, INotifyPropertyChanged, ISceneBrush, ITileBrush, IBrush
- Inheritance
-
VisualBrush
- Implements
- Inherited Members
- Extension Methods
Constructors
VisualBrush()
Initializes a new instance of the VisualBrush class.
public VisualBrush()
VisualBrush(Visual)
Initializes a new instance of the VisualBrush class.
public VisualBrush(Visual visual)
Parameters
visual
VisualThe visual to draw.
Fields
VisualProperty
Defines the Visual property.
public static readonly StyledProperty<Visual?> VisualProperty
Field Value
Properties
Visual
Gets or sets the visual to draw.
public Visual? Visual { 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 override void OnUnreferencedFromCompositor(Compositor c)