Edit

Share via


InertiaProcessor2D.RotationBehavior Property

Definition

Gets or sets the rotation behavior of the inertia processor.

public:
 property System::Windows::Input::Manipulations::InertiaRotationBehavior2D ^ RotationBehavior { System::Windows::Input::Manipulations::InertiaRotationBehavior2D ^ get(); void set(System::Windows::Input::Manipulations::InertiaRotationBehavior2D ^ value); };
public System.Windows.Input.Manipulations.InertiaRotationBehavior2D RotationBehavior { get; set; }
member this.RotationBehavior : System.Windows.Input.Manipulations.InertiaRotationBehavior2D with get, set
Public Property RotationBehavior As InertiaRotationBehavior2D

Property Value

The rotation behavior of the inertia processor.

Examples

In the following example, the DesiredRotation property is set to enable inertia processing to rotate an object three-and-one-half times from its starting orientation.

#region SetDesiredRotation
// PI * 2 radians = 360 degrees.
inertiaProcessor.RotationBehavior.DesiredRotation = (float)Math.PI * 7.0f;
#endregion

Applies to