InertiaProcessor2D.RotationBehavior 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 rotation behavior of the inertia processor.
public:
property System::Windows::Input::Manipulations::InertiaRotationBehavior2D ^ RotationBehavior { System::Windows::Input::Manipulations::InertiaRotationBehavior2D ^ get(); void set(System::Windows::Input::Manipulations::InertiaRotationBehavior2D ^ value); };
public System.Windows.Input.Manipulations.InertiaRotationBehavior2D RotationBehavior { get; set; }
member this.RotationBehavior : System.Windows.Input.Manipulations.InertiaRotationBehavior2D with get, set
Public Property RotationBehavior As InertiaRotationBehavior2D
Property Value
The rotation behavior of the inertia processor.
Examples
In the following example, the DesiredRotation property is set to enable inertia processing to rotate an object three-and-one-half times from its starting orientation.
#region SetDesiredRotation
// PI * 2 radians = 360 degrees.
inertiaProcessor.RotationBehavior.DesiredRotation = (float)Math.PI * 7.0f;
#endregion
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.