This documentation is archived and is not being maintained.

ApplicationGesture Enumeration

Specifies the available application-specific gesture.

Namespace: System.Windows.Ink
Assembly: PresentationCore (in presentationcore.dll)
XML Namespace:  http://schemas.microsoft.com/winfx/2006/xaml/presentation

public enum ApplicationGesture
public enum ApplicationGesture
public enum ApplicationGesture
 This class is not typically used in XAML. 

 Member nameDescription
AllGesturesRecognizes all application-specific gestures. 
ArrowDownHas no suggested semantic behavior or action. The arrow can be drawn in single stroke or in two strokes where one stroke is the line and the other is the arrow head. Do not use more than two strokes to draw the arrow. 
ArrowLeftHas no suggested semantic behavior or action. The arrow can be drawn in single stroke or in two strokes where one stroke is the line and the other is the arrow head. Do not use more than two strokes to draw the arrow. 
ArrowRightHas no suggested semantic behavior or action. The arrow can be drawn in single stroke or in two strokes where one stroke is the line and the other is the arrow head. Do not use more than two strokes to draw the arrow. 
ArrowUpHas no suggested semantic behavior or action. The arrow can be drawn in single stroke or in two strokes where one stroke is the line and the other is the arrow head. Do not use more than two strokes to draw the arrow. 
CheckDenotes a check-off. The upward stroke must be twice as long as the smaller downward stroke. 
ChevronDownHas no suggested semantic behavior or action. Both sides of the chevron must be drawn as equal as possible. The angle must be sharp and end in a point. 
ChevronLeftHas no suggested semantic behavior or action. Both sides of the chevron must be drawn as equal as possible. The angle must be sharp and end in a point. 
ChevronRightHas no suggested semantic behavior or action. Both sides of the chevron must be drawn as equal as possible. The angle must be sharp and end in a point. 
ChevronUpHas no suggested semantic behavior or action. Both sides of the chevron must be drawn as equal as possible. The angle must be sharp and end in a point. 
CircleHas no suggested semantic behavior or action. The circle must be drawn in a single stroke without lifting the pen. 
CurlicueCuts a word. Start the curlicue on the word you intend to cut. 
DoubleCirclePastes a selection. The two circles must overlap each other and be drawn in a single stroke without lifting the pen. 
DoubleCurlicueCopies a word. Start the double-curlicue on the word you intend to copy. 
DoubleTapSignifies a mouse double-click. The two taps must be made quickly to result in the least amount of slippage and the least duration between taps. In addition, the taps must be as close to each other as possible. 
DownHas no suggested semantic behavior or action. This gesture must be drawn as a single fast flick in the downward direction. 
DownLeftHas no suggested semantic behavior or action. This gesture must be drawn in a single stroke starting with the down stroke. The two sides must be as equal in length as possible and at a right angle. 
DownLeftLongSignifies pressing an ENTER key. This gesture must be drawn in a single stroke starting with the down stroke. The left stroke is about twice as long as the up stroke, and the two strokes must be at a right angle. 
DownRightHas no suggested semantic behavior or action. This gesture must be drawn in a single stroke starting with the down stroke. The two sides must be as equal in length as possible and at a right angle. 
DownRightLongSignifies pressing the spacebar. This gesture must be drawn in a single stroke starting with the down stroke. The right stroke must be about twice as long as the up stroke, and the two strokes must be at a right angle. 
DownUpHas no suggested semantic behavior or action. This gesture must be drawn in a single stroke starting with the down stroke. The two strokes must be as close to each other as possible. 
ExclamationHas no suggested semantic behavior or action. The line must be drawn first and then the dot drawn quickly and as close to the line as possible. 
LeftSpecifies a backspace. This gesture must be drawn as a single fast flick to the left. 
LeftDownHas no suggested semantic behavior or action. This gesture must be drawn in a single stroke starting with the left stroke. The two sides are as equal in length as possible and at a right angle. 
LeftRightHas no suggested semantic behavior or action. This gesture must be drawn in a single stroke starting with the left stroke. The two sides are as equal in length as possible and at a right angle. 
LeftUpHas no suggested semantic behavior or action. This gesture must be drawn in a single stroke starting with the left stroke. The two sides must be as equal in length as possible and at a right angle. 
NoGestureRecognizes no application-specific gestures. 
RightSignifies a space. This gesture must be drawn as a single fast flick to the right. 
RightDownHas no suggested semantic behavior or action. This gesture must be drawn in a single stroke starting with the right stroke. The two sides must be as equal in length as possible and at a right angle. 
RightLeftCopies a selection. This gesture must be drawn in a single stroke starting with the right stroke. The two strokes must be as close to each other as possible. 
RightUpSignifies an Input Method Editor (IME) convert. This gesture must be drawn in a single stroke starting with the right stroke. The two sides must be as equal in length as possible and at a right angle. 
ScratchOutErases content. This gesture must be drawn as a single stroke that has at least three back-and-forth motions. 
SemicircleLeftUndoes an action. The semicircle must be drawn from left to right. The two ends of the semicircle should be as horizontally even as possible. 
SemicircleRightRedoes an action. The semicircle must be drawn from right to left. The two ends of the semicircle should be as horizontally even as possible. 
SquareMarks an action item. The square can be drawn in one or two strokes. In one stroke, draw the entire square without lifting the pen. In two strokes, draw three sides of the square and use another stroke to draw the remaining side. Do not use more than two strokes to draw the square. 
StarMarks an action item. The star must have exactly five points and be drawn in a single stroke without lifting the pen. 
TapSignifies a mouse click. For the least amount of slippage, the tap must be made quickly. 
TriangleInserts input. The triangle must be drawn in a single stroke, without lifting the pen. 
UpHas no suggested semantic behavior or action. This gesture must be drawn as a single fast flick in the upward direction. 
UpDownUndoes an action. This gesture must be drawn in a single stroke starting with the up stroke. The two strokes must be as close to each other as possible. 
UpLeftHas no suggested semantic behavior or action. This gesture must be drawn in a single stroke starting with the up stroke. The two sides must be as equal in length as possible and at a right angle. 
UpLeftLongDecreases the indent. This gesture must be drawn in a single stroke starting with the up stroke. The left stroke must be about twice as long as the up stroke, and the two strokes must be at a right angle. 
UpRightHas no suggested semantic behavior or action. This gesture must be drawn in a single stroke starting with the up stroke. The two sides must be as equal in length as possible and at a right angle. 
UpRightLongSignifies pressing a TAB key. This gesture must be drawn in a single stroke starting with the up stroke. The right stroke must be about twice as long as the up stroke, and the two strokes must be at a right angle. 

The following example demonstrates how to identify a gesture on an InkCanvas. This example assumes that there is an InkCanvas called inkCanvas1 and that its Gesture event has been connected to the event handler in this example.

void inkCanvas1_Gesture(object sender, InkCanvasGestureEventArgs e)
{
    ReadOnlyCollection<GestureRecognitionResult> gestureResults = 
        e.GetGestureRecognitionResults();

    // Check the first recognition result for a gesture.
    if (gestureResults[0].RecognitionConfidence == 
        RecognitionConfidence.Strong)
    {
        switch (gestureResults[0].ApplicationGesture)
        {
            case ApplicationGesture.Down:
                // Do something.
                break;
            case ApplicationGesture.ArrowDown:
                // Do something.
                break;
            case ApplicationGesture.Circle:
                // Do something.
                break;
        }

    }
}

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0
Show: