Редагувати

Поділитися через


InertiaExpansionBehavior.DesiredDeceleration Property

Definition

Gets or sets the rate that resizing slows in device-independent units (1/96th inch per unit) per square milliseconds.

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 that resizing slows in device-independent units (1/96th inch per unit) per square milliseconds. 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 DesiredExpansion 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