Editare

Partajați prin


InertiaRotationBehavior.DesiredRotation Property

Definition

Gets or sets the rotation, in degrees, at the end of the inertial movement.

public:
 property double DesiredRotation { double get(); void set(double value); };
public double DesiredRotation { get; set; }
member this.DesiredRotation : double with get, set
Public Property DesiredRotation As Double

Property Value

The rotation, in degrees, at the end of the inertial movement. The default is NaN.

Remarks

Use the DesiredRotation property to specify the desired rotation of the manipulation when inertia ends. Set either the DesiredRotation or the DesiredDeceleration, but not both. When you set one of these properties, the other property is changed to Double.NaN if it has a value.

For more information about manipulations, see the Input Overview. For an example of an application that responds to manipulations, see Walkthrough: Creating Your First Touch Application.

Applies to