Table of Contents

Class VisualBrush

Namespace
Avalonia.Media
Assembly
Avalonia.Base.dll

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 Visual

The visual to draw.

Fields

VisualProperty

Defines the Visual property.

public static readonly StyledProperty<Visual?> VisualProperty

Field Value

StyledProperty<Visual>

Properties

Visual

Gets or sets the visual to draw.

public Visual? Visual { get; set; }

Property Value

Visual

Methods

OnPropertyChanged(AvaloniaPropertyChangedEventArgs)

Called when a avalonia property changes on the object.

protected override void OnPropertyChanged(AvaloniaPropertyChangedEventArgs change)

Parameters

change AvaloniaPropertyChangedEventArgs

The property change details.

OnUnreferencedFromCompositor(Compositor)

protected override void OnUnreferencedFromCompositor(Compositor c)

Parameters

c Compositor