Manipulation2DStartedEventArgs Manipulation2DStartedEventArgs Manipulation2DStartedEventArgs Manipulation2DStartedEventArgs Class

Definition

Represents data that is sent with a Started event.

public ref class Manipulation2DStartedEventArgs : EventArgs
public class Manipulation2DStartedEventArgs : EventArgs
type Manipulation2DStartedEventArgs = class
    inherit EventArgs
Public Class Manipulation2DStartedEventArgs
Inherits EventArgs
Inheritance
Manipulation2DStartedEventArgsManipulation2DStartedEventArgsManipulation2DStartedEventArgsManipulation2DStartedEventArgs

Examples

In the following example, an event handler for the Started event checks to see if inertia processing is running and if so, stops it.

#region OnManipulationStarted
private void OnManipulationStarted(object sender, Manipulation2DStartedEventArgs e)
{
    if (inertiaProcessor.IsRunning)
    {
        inertiaProcessor.Complete(Timestamp);
    }
}
#endregion
#region Timestamp
private long Timestamp
{
    get
    {
        // Get timestamp in 100-nanosecond units.
        double nanosecondsPerTick = 1000000000.0 / System.Diagnostics.Stopwatch.Frequency;
        return (long)(System.Diagnostics.Stopwatch.GetTimestamp() / nanosecondsPerTick / 100.0);
    }
}
#endregion

Properties

OriginX OriginX OriginX OriginX

Gets the x-coordinate of the origin.

OriginY OriginY OriginY OriginY

Gets the y-coordinate of the origin.

Methods

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to