Assembly: System.Windows (in System.Windows.dll)
Thetype exposes the following members.
|Equals(Object)||Determines whether the specified Object is equal to the current Object. (Inherited from Object.)|
|Finalize||Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)|
|GetHashCode||Serves as a hash function for a particular type. (Inherited from Object.)|
|GetPosition||Returns the x- and y-coordinates of the pointer position, optionally evaluated against a coordinate origin of a supplied UIElement.|
|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.)|
This event data class is used with the following events.
Note that events that specifically deal with mouse button events use a different event data class, MouseButtonEventArgs. You can use the shared API (MouseEventArgs.GetPosition or MouseEventArgs.StylusDevice) for any pointer event through event handling and the event data.
The most relevant member of is GetPosition, which is a method, not a property. Particularly for a click event, or for cases where the pointer is captured, it is often useful to know the exact pointer position at time of the event. GetPosition returns that position relative to the Windows Phone coordinate space, or optionally against the specific coordinate space of a supplied reference element.