GestureRecognizer Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of the GestureRecognizer class.
Overloads
GestureRecognizer() |
Initializes a new instance of the GestureRecognizer class. |
GestureRecognizer(IEnumerable<ApplicationGesture>) |
Initializes a new instance of the GestureRecognizer class. |
GestureRecognizer()
Initializes a new instance of the GestureRecognizer class.
public:
GestureRecognizer();
public GestureRecognizer ();
Public Sub New ()
Remarks
When it is created with this constructor, the GestureRecognizer recognizes all application gestures.
Applies to
GestureRecognizer(IEnumerable<ApplicationGesture>)
Initializes a new instance of the GestureRecognizer class.
public:
GestureRecognizer(System::Collections::Generic::IEnumerable<System::Windows::Ink::ApplicationGesture> ^ enabledApplicationGestures);
public GestureRecognizer (System.Collections.Generic.IEnumerable<System.Windows.Ink.ApplicationGesture> enabledApplicationGestures);
new System.Windows.Ink.GestureRecognizer : seq<System.Windows.Ink.ApplicationGesture> -> System.Windows.Ink.GestureRecognizer
Public Sub New (enabledApplicationGestures As IEnumerable(Of ApplicationGesture))
Parameters
- enabledApplicationGestures
- IEnumerable<ApplicationGesture>
An array of type ApplicationGesture that specifies the application gestures the GestureRecognizer will recognize.
Examples
The following example demonstrates how to create a GestureRecognizer that recognizes only the Down, Right, and ScratchOut gestures.
ApplicationGesture[] gestures = {ApplicationGesture.Down,
ApplicationGesture.Right, ApplicationGesture.ScratchOut};
GestureRecognizer recognizer = new GestureRecognizer(gestures);
' Declare and initialize an array of application gestures.
Dim gestures As ApplicationGesture() = _
{ApplicationGesture.Down, _
ApplicationGesture.Right, _
ApplicationGesture.Scratchout}
Dim recognizer As New GestureRecognizer(gestures)
Remarks
Use the GestureRecognizer constructor to create a GestureRecognizer that recognizes a subset of the application gestures.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기