Table of Contents

Class TileBrush

Namespace
Avalonia.Media
Assembly
Avalonia.Base.dll

Base class for brushes which display repeating images.

public abstract class TileBrush : Brush, INotifyPropertyChanged, ITileBrush, IBrush
Inheritance
TileBrush
Implements
Derived
Inherited Members
Extension Methods

Fields

AlignmentXProperty

Defines the AlignmentX property.

public static readonly StyledProperty<AlignmentX> AlignmentXProperty

Field Value

StyledProperty<AlignmentX>

AlignmentYProperty

Defines the AlignmentY property.

public static readonly StyledProperty<AlignmentY> AlignmentYProperty

Field Value

StyledProperty<AlignmentY>

DestinationRectProperty

Defines the DestinationRect property.

public static readonly StyledProperty<RelativeRect> DestinationRectProperty

Field Value

StyledProperty<RelativeRect>

SourceRectProperty

Defines the SourceRect property.

public static readonly StyledProperty<RelativeRect> SourceRectProperty

Field Value

StyledProperty<RelativeRect>

StretchProperty

Defines the Stretch property.

public static readonly StyledProperty<Stretch> StretchProperty

Field Value

StyledProperty<Stretch>

TileModeProperty

Defines the TileMode property.

public static readonly StyledProperty<TileMode> TileModeProperty

Field Value

StyledProperty<TileMode>

Properties

AlignmentX

Gets or sets the horizontal alignment of a tile in the destination.

public AlignmentX AlignmentX { get; set; }

Property Value

AlignmentX

AlignmentY

Gets or sets the horizontal alignment of a tile in the destination.

public AlignmentY AlignmentY { get; set; }

Property Value

AlignmentY

DestinationRect

Gets or sets the rectangle on the destination in which to paint a tile.

public RelativeRect DestinationRect { get; set; }

Property Value

RelativeRect

SourceRect

Gets or sets the rectangle of the source image that will be displayed.

public RelativeRect SourceRect { get; set; }

Property Value

RelativeRect

Stretch

Gets or sets a value controlling how the source rectangle will be stretched to fill the destination rect.

public Stretch Stretch { get; set; }

Property Value

Stretch

TileMode

Gets or sets the brush's tile mode.

public TileMode TileMode { get; set; }

Property Value

TileMode