Table of Contents

Class TranslateTransform

Namespace
Avalonia.Media
Assembly
Avalonia.Base.dll

Translates (moves) an Visual.

public sealed class TranslateTransform : Transform, INotifyPropertyChanged, IMutableTransform, ITransform
Inheritance
TranslateTransform
Implements
Inherited Members
Extension Methods

Constructors

TranslateTransform()

Initializes a new instance of the TranslateTransform class.

public TranslateTransform()

TranslateTransform(double, double)

Initializes a new instance of the TranslateTransform class.

public TranslateTransform(double x, double y)

Parameters

x double

Gets the horizontal offset of the translate.

y double

Gets the vertical offset of the translate.

Fields

XProperty

Defines the X property.

public static readonly StyledProperty<double> XProperty

Field Value

StyledProperty<double>

YProperty

Defines the Y property.

public static readonly StyledProperty<double> YProperty

Field Value

StyledProperty<double>

Properties

Value

Gets the transform's Matrix.

public override Matrix Value { get; }

Property Value

Matrix

X

Gets the horizontal offset of the translate.

public double X { get; set; }

Property Value

double

Y

Gets the vertical offset of the translate.

public double Y { get; set; }

Property Value

double

Methods

OnPropertyChanged(AvaloniaPropertyChangedEventArgs)

Called when a avalonia property changes on the object.

protected override void OnPropertyChanged(AvaloniaPropertyChangedEventArgs change)

Parameters

change AvaloniaPropertyChangedEventArgs

The property change details.