SystemGesture 열거형
콘텐츠의 테이블 축소
콘텐츠의 테이블 확장

SystemGesture 열거형

Defines the available system gestures.

네임스페이스: System.Windows.Input
어셈블리: PresentationCore(presentationcore.dll)
XML 네임스페이스:

public enum SystemGesture
public enum SystemGesture
public enum SystemGesture
<object property="EnumerationValue" .../>

 멤버 이름설명
DragMaps to a left drag on a mouse. 
FlickOccurs with a short, quick stroke that translates into a specific command. The action taken by a flick is set system-wide. An application can listen for a Flick and prevent it from becoming one of the standard ApplicationCommands by setting the Handled property to true in the StylusSystemGesture event. Only Windows Vista supports flicks. 
HoldEnterIndicates that press and hold has occurred. 
HoldLeaveNot implemented. 
HoverEnterMaps to a mouse hover. This can be used to show ToolTip rollover effects, or other mouse hover behaviors. 
HoverLeaveMaps to a mouse leaving a hover. This can be used to end ToolTip rollover effects or other mouse hover behaviors. 
NoneNo system gesture. 
RightDragMaps to a right drag on a mouse. This can be used to drag an object or selection to a different area and is followed by the appearance of the shortcut menu which provides options for moving the object. 
RightTapMaps to a right-click on a mouse. This can be used to show a shortcut menu. 
TapMaps to a left-click on a mouse. This can be used to choose a command from the menu or toolbar, take action if a command is chosen, set an insertion point, or show selection feedback. 

When the operating system recognizes system gestures, the StylusSystemGesture event occurs. Many of these gestures map to traditional mouse events. For example, the Tap system gesture mimics a single left-click on a mouse.

The following example determines which type of system gesture that raised the SystemGesture event. This example assumes that there is a InkCanvas called inkcanvas1 and that SystemGesture is connected to the event handler below.

void inkCanvas1_StylusSystemGesture(object sender, StylusSystemGestureEventArgs e)
    this.Title = e.SystemGesture.ToString();
    switch (e.SystemGesture)
        case SystemGesture.RightTap:
            // Do something.

        case SystemGesture.Tap:
            // Do something else.

Microsoft .NET Framework 3.0은 Windows Vista, Microsoft Windows XP SP2 및 Windows Server 2003 SP1에서 지원됩니다.

.NET Framework

3.0에서 지원

커뮤니티 추가 항목

© 2016 Microsoft