Manipulation2DStartedEventArgs 类

定义

表示用 Started 事件发送的数据。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
继承
Manipulation2DStartedEventArgs

示例

在下面的示例中, Started事件的事件处理程序检查是否正在运行惯性处理, 如果是, 则将其停止。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

属性

OriginX

获取原点的 X 坐标。Gets the x-coordinate of the origin.

OriginY

获取原点的 Y 坐标。Gets the y-coordinate of the origin.

方法

Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetHashCode()

用作默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
ToString()

返回一个表示当前对象的 string。Returns a string that represents the current object.

(继承自 Object)

适用于