Rotates the element by the degrees specified.

Example

The following example rotates a rectangle 45 degrees

``````<Rectangle Width="100" Height="50">
<Rotation Degrees="90"/>
</Rectangle>``````

For animated rotations, consider using a Rotate animator instead of animating the properties of this class.

Location

Namespace
Fuse
Package
Fuse.Nodes 2.9.1
Show Uno properties and methods

Interface of Rotation

Angle : float ux

The rotation in radians. This controls the rotation on Z-axis, i.e. the only meaningful axis of rotation for 2D graphics. Same as AngleZ.

Degrees : float ux

The rotation in degrees. This controls the rotation on Z-axis, i.e. the only meaningful axis of rotation for 2D graphics. Same as DegreesZ.

DegreesY : float ux

The rotation in degrees on the Y-axis. This is mainly used for 3D rotation. For a rotation in the 2D plane, use Degrees.

DegreesZ : float ux

The rotation in degrees on the Z-axis. Same as Degrees.

EulerAngle : float3 ux

The rotation in radians for each axis.

EulerAngleDegrees : float3 ux

The rotation in degrees for each axis.

Rotation Constructor uno

Creates a new Rotation

Inherited from Transform

IsFlat : bool uno

Whether this tranform keeps the object strictly in the XY-plane. This property is used for optimization and must be computed correctly in derived classes.

Inherited from Node

Bindings : IList of Binding ux

The list of bindings belonging to this node.

ContextParent : Node uno

The context parent is the semantic parent of this node. It is where non-UI structure should be resolved, like looking for the DataContext, a Navigation, or other semantic item.

FindNodeByName(Selector, Predicate<Node> (Node)) : Node uno

Finds the first node with a given name that satisfies the given acceptor. The serach algorithm works as follows: Nodes in the subtree are matched first, then it matches the nodes in the subtrees ofthe ancestor nodes by turn all the way to the root. If no matching node is found, the function returns null.

IsRootingCompleted : bool uno

Whether rooting for this node is completed. Returns false if unrooting has started.

IsRootingStarted : bool uno

Whether rooting of this node has started. Note that even if this property returns true, rooting may not yet be completed for the node. See also IsRootingCompleted.

Name : Selector ux

Run-time name of the node. This property is automatically set using the ux:Name attribute.

NextSibling<T> : T uno

Returns the next sibling node of the given type.

OnRooted uno

If you override `OnRooted` you must call `base.OnRooted()` first in your derived class. No other processing should happen first, otherwise you might end up in an undefined state.

Parent : Visual uno

The parent Visual of this node. Will return null if the node is not rooted.

PreviousSibling<T> : T uno

Returns the next sibling node of the given type.

Properties : Properties uno

A linked list holding data for extrinsic properties.

hide

hide

Attached UX Attributes

GlobalKey (attached by Resource) : string ux

The `ux:Global` attribute creates a global resource that is accessible everywhere in UX markup.

Implemented Interfaces

IScriptObject uno

Interface for objects that can have a script engine representation

hide