ApplicationGesture Enum

Definition

Specifies the available application-specific gesture.

public enum class ApplicationGesture
public enum ApplicationGesture
type ApplicationGesture = 
Public Enum ApplicationGesture
Inheritance
ApplicationGesture

Fields

AllGestures 0

Recognizes all application-specific gestures.

ArrowDown 61497

Has 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.

ArrowLeft 61498

Has 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.

ArrowRight 61499

Has 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.

ArrowUp 61496

Has 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.

Check 61445

Has no suggested semantic behavior or action. The upward stroke must be twice as long as the smaller downward stroke.

ChevronDown 61489

Has 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.

ChevronLeft 61490

Has 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.

ChevronRight 61491

Has 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.

ChevronUp 61488

Has 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.

Circle 61472

Has no suggested semantic behavior or action. The circle must be drawn in a single stroke without lifting the pen.

Curlicue 61456

Has no suggested semantic behavior or action. Start the curlicue on the word you intend to cut.

DoubleCircle 61473

Has no suggested semantic behavior or action. The two circles must overlap each other and be drawn in a single stroke without lifting the pen.

DoubleCurlicue 61457

Has no suggested semantic behavior or action. Start the double-curlicue on the word you intend to copy.

DoubleTap 61681

Signifies 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.

Down 61529

Has no suggested semantic behavior or action. This gesture must be drawn as a single fast flick in the downward direction.

DownLeft 61546

Has 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.

DownLeftLong 61542

Signifies 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.

DownRight 61547

Has 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.

DownRightLong 61543

Signifies 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.

DownUp 61537

Has 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.

Exclamation 61604

Has 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.

Left 61530

Specifies a backspace. This gesture must be drawn as a single fast flick to the left.

LeftDown 61549

Has 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.

LeftRight 61538

Has 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.

LeftUp 61548

Has 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.

NoGesture 61440

Recognizes no application-specific gestures.

Right 61531

Signifies a space. This gesture must be drawn as a single fast flick to the right.

RightDown 61551

Has 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.

RightLeft 61539

Has no suggested semantic behavior or action. 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.

RightUp 61550

Has 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.

ScratchOut 61441

Erases content. This gesture must be drawn as a single stroke that has at least three back-and-forth motions.

SemicircleLeft 61480

Has no suggested semantic behavior or action. The semicircle must be drawn from left to right. The two ends of the semicircle should be as horizontally even as possible.

SemicircleRight 61481

Has no suggested semantic behavior or action. The semicircle must be drawn from right to left. The two ends of the semicircle should be as horizontally even as possible.

Square 61443

Has no suggested semantic behavior or action. 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.

Star 61444

Has no suggested semantic behavior or action. The star must have exactly five points and be drawn in a single stroke without lifting the pen.

Tap 61680

Signifies a mouse click. For the least amount of slippage, the tap must be made quickly.

Triangle 61442

Has no suggested semantic behavior or action. The triangle must be drawn in a single stroke, without lifting the pen.

Up 61528

Has no suggested semantic behavior or action. This gesture must be drawn as a single fast flick in the upward direction.

UpDown 61536

Has no suggested semantic behavior or 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.

UpLeft 61544

Has 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.

UpLeftLong 61540

Has no suggested semantic behavior or action. 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.

UpRight 61545

Has 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.

UpRightLong 61541

Signifies 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.

Examples

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;
        }
    }
}
Sub inkCanvas1_Gesture(ByVal sender As Object, _
    ByVal e As InkCanvasGestureEventArgs) Handles inkCanvas1.Gesture

    Dim gestureResults As ReadOnlyCollection(Of GestureRecognitionResult)
    gestureResults = e.GetGestureRecognitionResults()

    ' Check the first recognition result for a gesture.
    If gestureResults(0).RecognitionConfidence = _
       RecognitionConfidence.Strong Then

        Select Case gestureResults(0).ApplicationGesture
            Case ApplicationGesture.Down
                ' Do something.
            Case ApplicationGesture.ArrowDown
                ' Do something.
            Case ApplicationGesture.Circle
                ' Do something.
        End Select

    End If

End Sub

Remarks

XAML Text Usage

This class is not typically used in XAML.

Applies to