Skip to main content

Rotate3DTransform Class

Definition

Namespace:Avalonia.Media
Assembly:Avalonia.Base
Package:Avalonia

Non-Affine 3D transformation for rotating a visual around a definable axis

public class Rotate3DTransform

Inheritance: object -> AvaloniaObject -> Animatable -> Transform -> Rotate3DTransform

Constructors

NameDescription
Rotate3DTransform (2 overloads)Initializes a new instance of the Avalonia.Media.Rotate3DTransform class.

Rotate3DTransform overloads

Rotate3DTransform Constructor

Initializes a new instance of the Avalonia.Media.Rotate3DTransform class.

public Rotate3DTransform()

Rotate3DTransform Constructor

Initializes a new instance of the Avalonia.Media.Rotate3DTransform class.

public Rotate3DTransform(double angleX, double angleY, double angleZ, double centerX, double centerY, double centerZ, double depth)
Parameters

angleX double

The rotation around the X-Axis

angleY double

The rotation around the Y-Axis

angleZ double

The rotation around the Z-Axis

centerX double

The origin of the X-Axis

centerY double

The origin of the Y-Axis

centerZ double

The origin of the Z-Axis

depth double

The depth of the 3D effect

Methods

NameDescription
ParseParses a Avalonia.Media.Transform string. Inherited from Transform.
ToImmutableConverts a transform to an immutable transform. Inherited from Transform.
ToStringReturns a String representing this transform matrix instance. Inherited from Transform.
Bind (8 overloads)Binds a Avalonia.AvaloniaProperty to an Avalonia.Data.BindingBase. Inherited from AvaloniaObject.
CheckAccessReturns a value indicating whether the current thread is the UI thread. Inherited from AvaloniaObject.
ClearValue (4 overloads)Clears a Avalonia.AvaloniaProperty's local value. Inherited from AvaloniaObject.
CoerceValueCoerces the specified Avalonia.AvaloniaProperty. Inherited from AvaloniaObject.
EqualsCompares two objects using reference equality. Inherited from AvaloniaObject.
GetBaseValueInherited from AvaloniaObject.
GetHashCodeGets the hash code for the object. Inherited from AvaloniaObject.
GetValue (3 overloads)Gets a Avalonia.AvaloniaProperty value. Inherited from AvaloniaObject.
IsAnimatingChecks whether a Avalonia.AvaloniaProperty is animating. Inherited from AvaloniaObject.
IsSetChecks whether a Avalonia.AvaloniaProperty is set on this object. Inherited from AvaloniaObject.
SetCurrentValue (2 overloads)Sets the value of a dependency property without changing its value source. Inherited from AvaloniaObject.
SetValue (3 overloads)Sets a Avalonia.AvaloniaProperty value. Inherited from AvaloniaObject.
VerifyAccessChecks that the current thread is the UI thread and throws if not. Inherited from AvaloniaObject.

Properties

NameDescription
AngleXSets the rotation around the X-Axis
AngleYSets the rotation around the Y-Axis
AngleZSets the rotation around the Z-Axis
CenterXMoves the origin the X-Axis rotates around
CenterYMoves the origin the Y-Axis rotates around
CenterZMoves the origin the Z-Axis rotates around
DepthAffects the depth of the rotation effect
ValueGets the transform's Avalonia.Matrix.
TransitionsGets or sets the property transitions for the control. Inherited from Animatable.
DispatcherReturns the Avalonia.AvaloniaObject.Dispatcher that this Avalonia.AvaloniaObject is associated with. Inherited from AvaloniaObject.
ItemInherited from AvaloniaObject.

AngleX Property

Sets the rotation around the X-Axis

public double AngleX { get; set; }

AngleY Property

Sets the rotation around the Y-Axis

public double AngleY { get; set; }

AngleZ Property

Sets the rotation around the Z-Axis

public double AngleZ { get; set; }

CenterX Property

Moves the origin the X-Axis rotates around

public double CenterX { get; set; }

CenterY Property

Moves the origin the Y-Axis rotates around

public double CenterY { get; set; }

CenterZ Property

Moves the origin the Z-Axis rotates around

public double CenterZ { get; set; }

Depth Property

Affects the depth of the rotation effect

public double Depth { get; set; }

Value Property

Gets the transform's Avalonia.Matrix.

public Avalonia.Matrix Value { get; set; }

Fields

AngleXProperty Field

Defines the Avalonia.Media.Rotate3DTransform.AngleX property.

public Avalonia.StyledProperty<TValue><double> AngleXProperty

AngleYProperty Field

Defines the Avalonia.Media.Rotate3DTransform.AngleY property.

public Avalonia.StyledProperty<TValue><double> AngleYProperty

AngleZProperty Field

Defines the Avalonia.Media.Rotate3DTransform.AngleZ property.

public Avalonia.StyledProperty<TValue><double> AngleZProperty

CenterXProperty Field

Defines the Avalonia.Media.Rotate3DTransform.CenterX property.

public Avalonia.StyledProperty<TValue><double> CenterXProperty

CenterYProperty Field

Defines the Avalonia.Media.Rotate3DTransform.CenterY property.

public Avalonia.StyledProperty<TValue><double> CenterYProperty

CenterZProperty Field

Defines the Avalonia.Media.Rotate3DTransform.CenterZ property.

public Avalonia.StyledProperty<TValue><double> CenterZProperty

DepthProperty Field

Defines the Avalonia.Media.Rotate3DTransform.Depth property.

public Avalonia.StyledProperty<TValue><double> DepthProperty

Events

NameDescription
ChangedRaised when the transform changes. Inherited from Transform.
PropertyChangedRaised when a Avalonia.AvaloniaProperty value changes on this object. Inherited from AvaloniaObject.