InertiaProcessor2D.RotationBehavior Property

Definition

Gets or sets the rotation behavior of the inertia processor.

C#
public System.Windows.Input.Manipulations.InertiaRotationBehavior2D RotationBehavior { get; set; }

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.

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

Applies to

Produkt Verzie
.NET Framework 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9, 10