แก้ไข

แชร์ผ่าน


InertiaTranslationBehavior.DesiredDisplacement Property

Definition

Gets or sets the linear movement of the manipulation at the end of inertia.

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

Property Value

The linear movement of the manipulation at the end of inertia. The default is NaN.

Exceptions

The property is set to infinity.

-or-

The property is set to NaN.

Remarks

Use the DesiredDisplacement property to specify the desired position of the manipulation when inertia ends. 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