DesiredRotation Property
Collapse the table of content
Expand the table of content

InertiaRotationBehavior.DesiredRotation Property

.NET Framework (current version)
 

Gets or sets the rotation, in degrees, at the end of the inertial movement.

Namespace:   System.Windows.Input
Assembly:  PresentationCore (in PresentationCore.dll)

public double DesiredRotation { get; set; }

Property Value

Type: System.Double

The rotation, in degrees, at the end of the inertial movement. The default is Double.NaN.

Use the DesiredRotation property to specify the desired rotation of the manipulation when inertia ends. Set either the DesiredRotation 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.

.NET Framework
Available since 4.0
Return to top
Show:
© 2016 Microsoft