InertiaTranslationBehavior.DesiredDisplacement Property
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
The linear movement of the manipulation at the end of inertia. The default is NaN.
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.
Produkt | Versioner |
---|---|
.NET Framework | 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9, 10 |
Feedback om .NET
.NET är ett öppen källkod projekt. Välj en länk för att ge feedback: