C# Class WinRTXamlToolkit.Controls.Extensions.ManipulationInertiaStartingRoutedEventArgsExtensions

Implements extensions of the ManipulationInertiaStartingRoutedEventArgs class that defines the argument of the Windows.UI.Xaml.UIElement.ManipulationInertiaStarting event.
显示文件 Open project: xyzzer/WinRTXamlToolkit

Public Methods

Method Description
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.

Method Details

GetExpectedDisplacement() public static method

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. ///
return double

GetExpectedDisplacementDuration() public static method

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.
return double

GetExpectedDisplacementX() public static method

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. ///
return double

GetExpectedDisplacementY() public static method

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. ///
return double

SetDesiredDisplacementX() public static method

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.
return void

SetDesiredDisplacementY() public static method

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.
return void