Skip to main content

ITileBrush Interface

Definition

Namespace:Avalonia.Media
Assembly:Avalonia.Base
Package:Avalonia

A brush which displays a repeating image.

public interface ITileBrush
Implements:IBrush

Properties

NameDescription
AlignmentXGets the horizontal alignment of a tile in the destination.
AlignmentYGets the horizontal alignment of a tile in the destination.
DestinationRectGets the rectangle on the destination in which to paint a tile.
SourceRectGets the rectangle of the source image that will be displayed.
StretchGets a value indicating how the source rectangle will be stretched to fill the destination rect.
TileModeGets the brush's tile mode.

AlignmentX Property

Gets the horizontal alignment of a tile in the destination.

public Avalonia.Media.AlignmentX AlignmentX { get; set; }

AlignmentY Property

Gets the horizontal alignment of a tile in the destination.

public Avalonia.Media.AlignmentY AlignmentY { get; set; }

DestinationRect Property

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

public Avalonia.RelativeRect DestinationRect { get; set; }

SourceRect Property

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

public Avalonia.RelativeRect SourceRect { get; set; }

Stretch Property

Gets a value indicating how the source rectangle will be stretched to fill the destination rect.

public Avalonia.Media.Stretch Stretch { get; set; }

TileMode Property

Gets the brush's tile mode.

public Avalonia.Media.TileMode TileMode { get; set; }