แก้ไข

แชร์ผ่าน


ManipulationInertiaStartingEventArgs.TranslationBehavior Property

Definition

Gets or sets the rate of slowdown of linear inertial movement.

public:
 property System::Windows::Input::InertiaTranslationBehavior ^ TranslationBehavior { System::Windows::Input::InertiaTranslationBehavior ^ get(); void set(System::Windows::Input::InertiaTranslationBehavior ^ value); };
public System.Windows.Input.InertiaTranslationBehavior TranslationBehavior { get; set; }
member this.TranslationBehavior : System.Windows.Input.InertiaTranslationBehavior with get, set
Public Property TranslationBehavior As InertiaTranslationBehavior

Property Value

The rate of slowdown of linear inertial movement.

Remarks

Use the TranslationBehavior property to do the following:

  • Specify the initial velocity of the inertia when it begins by setting the InitialVelocity property.

  • Specify the desired position of the manipulation when inertia ends by setting the DesiredDisplacement property.

  • Specify the desired deceleration of the inertia by setting the DesiredDeceleration property.

You typically set either the DesiredDisplacement or the DesiredDeceleration, but not both.

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.

Applies to