C# Класс WinRTXamlToolkit.Controls.Extensions.ManipulationInertiaStartingRoutedEventArgsExtensions

Implements extensions of the ManipulationInertiaStartingRoutedEventArgs class that defines the argument of the Windows.UI.Xaml.UIElement.ManipulationInertiaStarting event.
Показать файл Открыть проект

Открытые методы

Метод Описание
GetExpectedDisplacement ( this e ) : double

Gets the expected displacement at the end of the flick. A flick starts on Windows.UI.Xaml.UIElement.ManipulationInertiaStarting event and ends on Windows.UI.Xaml.UIElement.ManipulationCompleted event. The displacement is the length of the vector from e.Cumulative.Translation at the beginning of the flick to the e.Cumulative.Translation at the end of the flick.

GetExpectedDisplacementDuration ( this e ) : double

Gets the expected duration of a flick as measured in seconds. A flick starts on Windows.UI.Xaml.UIElement.ManipulationInertiaStarting event and ends on Windows.UI.Xaml.UIElement.ManipulationCompleted event.

Note that the duration is estimated and may vary by a few percent based on testing.

GetExpectedDisplacementX ( this e ) : double

Gets the X component of the expected displacement vector at the end of the flick. A flick starts on Windows.UI.Xaml.UIElement.ManipulationInertiaStarting event and ends on Windows.UI.Xaml.UIElement.ManipulationCompleted event. The displacement is the vector from e.Cumulative.Translation at the beginning of the flick to the e.Cumulative.Translation at the end of the flick.

GetExpectedDisplacementY ( this e ) : double

Gets the Y component of the expected displacement vector at the end of the flick. A flick starts on Windows.UI.Xaml.UIElement.ManipulationInertiaStarting event and ends on Windows.UI.Xaml.UIElement.ManipulationCompleted event. The displacement is the vector from e.Cumulative.Translation at the beginning of the flick to the e.Cumulative.Translation at the end of the flick.

SetDesiredDisplacementX ( this e, double desiredDisplacementX ) : void

Sets the desired displacement along the X axis.

SetDesiredDisplacementY ( this e, double desiredDisplacementY ) : void

Sets the desired displacement along the Y axis.

Описание методов

GetExpectedDisplacement() публичный статический Метод

Gets the expected displacement at the end of the flick. A flick starts on Windows.UI.Xaml.UIElement.ManipulationInertiaStarting event and ends on Windows.UI.Xaml.UIElement.ManipulationCompleted event. The displacement is the length of the vector from e.Cumulative.Translation at the beginning of the flick to the e.Cumulative.Translation at the end of the flick.
public static GetExpectedDisplacement ( this e ) : double
e this The event argument from the /// event. ///
Результат double

GetExpectedDisplacementDuration() публичный статический Метод

Gets the expected duration of a flick as measured in seconds. A flick starts on Windows.UI.Xaml.UIElement.ManipulationInertiaStarting event and ends on Windows.UI.Xaml.UIElement.ManipulationCompleted event.
Note that the duration is estimated and may vary by a few percent based on testing.
public static GetExpectedDisplacementDuration ( this e ) : double
e this The event argument from the event.
Результат double

GetExpectedDisplacementX() публичный статический Метод

Gets the X component of the expected displacement vector at the end of the flick. A flick starts on Windows.UI.Xaml.UIElement.ManipulationInertiaStarting event and ends on Windows.UI.Xaml.UIElement.ManipulationCompleted event. The displacement is the vector from e.Cumulative.Translation at the beginning of the flick to the e.Cumulative.Translation at the end of the flick.
public static GetExpectedDisplacementX ( this e ) : double
e this /// The event argument from the /// event. ///
Результат double

GetExpectedDisplacementY() публичный статический Метод

Gets the Y component of the expected displacement vector at the end of the flick. A flick starts on Windows.UI.Xaml.UIElement.ManipulationInertiaStarting event and ends on Windows.UI.Xaml.UIElement.ManipulationCompleted event. The displacement is the vector from e.Cumulative.Translation at the beginning of the flick to the e.Cumulative.Translation at the end of the flick.
public static GetExpectedDisplacementY ( this e ) : double
e this The event argument from the /// event. ///
Результат double

SetDesiredDisplacementX() публичный статический Метод

Sets the desired displacement along the X axis.
public static SetDesiredDisplacementX ( this e, double desiredDisplacementX ) : void
e this The instance containing the event data.
desiredDisplacementX double The desired displacement along the X axis.
Результат void

SetDesiredDisplacementY() публичный статический Метод

Sets the desired displacement along the Y axis.
Can't adjust inertia angle - desired displacement Y is unsupported.
public static SetDesiredDisplacementY ( this e, double desiredDisplacementY ) : void
e this The instance containing the event data.
desiredDisplacementY double The desired displacement along the Y axis.
Результат void