ApplicationGesture 枚举

定义

指定可用的应用程序特定的 gestureSpecifies the available application-specific gesture.

public enum class ApplicationGesture
public enum ApplicationGesture
type ApplicationGesture = 
Public Enum ApplicationGesture
继承
ApplicationGesture

字段

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. 必须尽量将 V 形的两边绘制得一模一样。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. 必须尽量将 V 形的两边绘制得一模一样。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. 必须尽量将 V 形的两边绘制得一模一样。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. 必须尽量将 V 形的两边绘制得一模一样。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

表示按 Enter 键。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

表示按 Tab 键。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.

示例

下面的示例演示如何在上InkCanvas标识笔势。The following example demonstrates how to identify a gesture on an InkCanvas. 此示例假设有一个InkCanvas被调用inkCanvas1的, 并且其Gesture事件已连接到此示例中的事件处理程序。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

注解

XAML 文本用法XAML Text Usage

此类通常不在 XAML 中使用。This class is not typically used in XAML.

适用于