ImageBrush

Inheritance: TileBrush AvaloniaUI documentation: ImageBrush API

Constructors

ConstructorsDescription

ImageBrush(source: Bitmap)

Creates a ImageBrush widget.

Properties

PropertiesDescription

reference(value: ViewRef)

Link a ViewRef to access the direct ImageBrush control instance.

Usages

ImageBrush(ImageSource.fromString("icon.png"))

Get access to the underlying ImageBrush

let brushesRef = ViewRef<ImageBrush>()

ImageBrush(ImageSource.fromString("icon.png"))
    .reference(brushesRef)

Last updated