Bewerken

Share via


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
Manipulation2DStartedEventArgs

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

Gets the x-coordinate of the origin.

OriginY

Gets the y-coordinate of the origin.

Methods

Equals(Object)

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

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to