GestureRecognizer.SetEnabledGestures Method
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.
Sets the application gestures that the GestureRecognizer recognizes.
public:
void SetEnabledGestures(System::Collections::Generic::IEnumerable<System::Windows::Ink::ApplicationGesture> ^ applicationGestures);
public void SetEnabledGestures (System.Collections.Generic.IEnumerable<System.Windows.Ink.ApplicationGesture> applicationGestures);
member this.SetEnabledGestures : seq<System.Windows.Ink.ApplicationGesture> -> unit
Public Sub SetEnabledGestures (applicationGestures As IEnumerable(Of ApplicationGesture))
Parameters
- applicationGestures
- IEnumerable<ApplicationGesture>
An array of type ApplicationGesture that specifies the application gestures you wish the GestureRecognizer to 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();
recognizer.SetEnabledGestures(gestures);
' Declare and initialize an array of application gestures.
Dim gestures As ApplicationGesture() = _
{ApplicationGesture.Down, _
ApplicationGesture.Right, _
ApplicationGesture.Scratchout}
Dim recognizer As New GestureRecognizer()
recognizer.SetEnabledGestures(gestures)
Applies to
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET