InertiaTranslationBehavior.DesiredDisplacement Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
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.