Visual.RotationAxis Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
The axis to rotate the visual around. Animatable.
public:
property float3 RotationAxis { float3 get(); void set(float3 value); };
float3 RotationAxis();
void RotationAxis(float3 value);
public Vector3 RotationAxis { get; set; }
var vector3 = visual.rotationAxis;
visual.rotationAxis = vector3;
Public Property RotationAxis As Vector3
Property Value
The axis to rotate the visual around. For example, a value of Vector3(1,0,0) indicates rotation along the x-axis.
Remarks
This property can be animated. Call CompositionObject.StartAnimation to associate it with a CompositionAnimation.
Visual supports two forms of rotation, by axis-angle, and by orientation.