For this event to occur, the InkCollector object must have interest in a set of application gestures. To set the InkCollector object's interest in a set of gestures, call the SetGestureStatus method.
For a list of specific application gestures, see the ApplicationGesture enumeration. For more information about application gestures, see Pen Input, Ink, and Recognition.
The event handler receives an argument of type InkCollectorGestureEventArgs that contains data about this event.
When you create an InkCollectorGestureEventHandler delegate, you identify the method that handles the event. To associate the event with your event handler, add an instance of the delegate to the event. The event handler is called whenever the event occurs, unless you remove the delegate.
When the CollectionMode property is set to GestureOnly, the timeout between when a user adds a gesture and when the Gesture event occurs is a fixed value that you cannot alter programmatically. Gesture recognition is faster in InkAndGesture mode.
To prevent the collection of ink while in InkAndGesture mode:
Set CollectionMode to InkAndGesture.
To prevent the flow of ink while gesturing, set the DynamicRendering property to false.
In addition to while the user inserts ink, the Gesture event fires when the InkCollector object is in select or erase mode. You are responsible for tracking the editing mode and should be aware of the mode before interpreting the event.
Note: |
|---|
To recognize gestures, you must use an object or control that can collect ink. |