InertiaRotationBehavior2D.DesiredDeceleration Property

.NET Framework (current version)
 

Gets or sets the desired angular deceleration, in radians per millisecond squared.

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

public float DesiredDeceleration { get; set; }

Property Value

Type: System.Single

The desired angular deceleration, in radians per millisecond squared.

This property represents the desired angular deceleration to be used during the inertia operation. This property value is mutually exclusive with the DesiredRotation property; setting this property will set DesiredRotation to NaN. The default value for both this property and DesiredRotation is NaN. You must set one or the other property before inertia processing starts.

DesiredDeceleration must be a finite, non-negative number.

This property cannot be set while the inertia processor is running; otherwise, an exception is thrown.

.NET Framework
Available since 4.0
Return to top
Show: