Class TranslateTransform
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
doubleGets the horizontal offset of the translate.
y
doubleGets the vertical offset of the translate.
Fields
XProperty
Defines the X property.
public static readonly StyledProperty<double> XProperty
Field Value
YProperty
Defines the Y property.
public static readonly StyledProperty<double> YProperty
Field Value
Properties
Value
Gets the transform's Matrix.
public override Matrix Value { get; }
Property Value
X
Gets the horizontal offset of the translate.
public double X { get; set; }
Property Value
Y
Gets the vertical offset of the translate.
public double Y { get; set; }
Property Value
Methods
OnPropertyChanged(AvaloniaPropertyChangedEventArgs)
Called when a avalonia property changes on the object.
protected override void OnPropertyChanged(AvaloniaPropertyChangedEventArgs change)
Parameters
change
AvaloniaPropertyChangedEventArgsThe property change details.