Partager via


TouchPanel.IsGestureAvailable Property

Used to determine if a touch gesture is available.

Namespace: Microsoft.Xna.Framework.Input.Touch
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

Syntax

public static bool IsGestureAvailable { get; }

Property Value

true if there are any touch gestures available to read; false otherwise.

Remarks

Before gestures can become available, they first must be set with the TouchPanel.EnabledGestures property.

If IsGestureAvailable is true, TouchPanel.ReadGesture can be used to read the gesture data.

See Also

Tasks

Detecting Gestures on a Multitouch Screen (Windows Phone)
Working with Touch Input (Windows Phone)

Reference

TouchPanel Class
TouchPanel Members
Microsoft.Xna.Framework.Input.Touch Namespace

Platforms

Xbox 360, Windows 7, Windows Vista, Windows XP