TranslateTransform

Inheritance: Transform AvaloniaUI documentation: TranslateTransform API

Constructors

Constructors
Description

TranslateTransform(x: float, y: float)

Creates a TranslateTransform widget.

TranslateTransform(x: float)

Creates a TranslateTransform widget.

TranslateTransform()

Creates a TranslateTransform widget.

Properties

Properties
Description

reference(value: ViewRef)

Link a ViewRef to access the direct TranslateTransform control instance.

Usages

VisualBrush(...)
    .transform(
        TranslateTransform(45.)
    )

Get access to the underlying TranslateTransform

let transformRef = ViewRef<TranslateTransform>()

VisualBrush(...)
    .transform(
        TranslateTransform(45.)
            .reference(transformRef)
    )

Last updated