Editare

Partajați prin


InertiaRotationBehavior.DesiredDeceleration Property

Definition

Gets or sets the rate the rotation slows in degrees per squared millisecond.

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

Property Value

The rate the rotation slows in degrees per squared millisecond. The default is NaN.

Exceptions

The property is set to infinity.

-or-

The property is set to NaN.

Remarks

Use the DesiredDeceleration property to specify the desired deceleration of the inertia. 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