'Declaration Public Event Pan As EventHandler(Of GestureEventArgs)
public event EventHandler<GestureEventArgs> Pan
Event Data
The event handler receives an argument of type GestureEventArgs containing data related to this event. The following GestureEventArgs properties provide information specific to this event.
Property | Description |
---|---|
Center | The calculated gesture center |
GestureArguments | the raw Gesture arguments |
GestureId | The windows gesture id |
IsBegin | The first event of a gesture |
IsEnd | The last event of a gesture |
IsInertia | The gesture has triggered inertia |
LastBeginEvent | The first gesture in this gesture event sequence |
LastEvent | The last gesture in this gesture event sequence |
Location | The gesture location translated into client area |
PanTranslation | The relative panning translation, used by the Pan event |
PanVelocity | The velocity vector of the pan gesture, can be used for custom inertia |
RotateAngle | The relative rotation angle, used by the Rotate event |
ZoomFactor | The zoom factor, used by the Zoom event |
Remarks
Use the PanTranslation property of the event argument to get the
relative translation size (relative to the last pan event)
See Also