Table of Contents

Class DrawingBrush

Namespace
Avalonia.Media
Assembly
Avalonia.Base.dll

Paints an area with an Drawing.

public sealed class DrawingBrush : TileBrush, INotifyPropertyChanged, ISceneBrush, ITileBrush, IBrush
Inheritance
DrawingBrush
Implements
Inherited Members
Extension Methods

Constructors

DrawingBrush()

Initializes a new instance of the DrawingBrush class.

public DrawingBrush()

DrawingBrush(Drawing)

Initializes a new instance of the DrawingBrush class.

public DrawingBrush(Drawing visual)

Parameters

visual Drawing

The visual to draw.

Fields

DrawingProperty

Defines the Drawing property.

public static readonly StyledProperty<Drawing?> DrawingProperty

Field Value

StyledProperty<Drawing>

Properties

Drawing

Gets or sets the visual to draw.

public Drawing? Drawing { get; set; }

Property Value

Drawing

Methods

OnUnreferencedFromCompositor(Compositor)

protected override void OnUnreferencedFromCompositor(Compositor c)

Parameters

c Compositor