แก้ไข

แชร์ผ่าน


InertiaTranslationBehavior.DesiredDeceleration Property

Definition

Gets or sets the rate the linear movement slows in device-independent units (1/96th inch per unit) 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 linear movement slows in device-independent units (1/96th inch per unit) 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 DesiredDisplacement 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