Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 913 Bytes

imagebrush.md

File metadata and controls

31 lines (21 loc) · 913 Bytes

ImageBrush

Inheritance: TileBrush
AvaloniaUI documentation: ImageBrush API

Constructors

Constructors Description
ImageBrush(source: Bitmap) Creates a ImageBrush widget.

Properties

Properties Description
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)