Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 5.21 KB

edgegesture.md

File metadata and controls

36 lines (25 loc) · 5.21 KB
-api-id -api-type -api-device-family-note
T:Windows.UI.Input.EdgeGesture
winrt class
xbox

Windows.UI.Input.EdgeGesture

-description

Provides access to the events that notify an app of triggers to its edge-based UI.

-remarks

Note

This class is not agile, which means that you need to consider its threading model and marshaling behavior. For more info, see Threading and Marshaling (C++/CX) and Using Windows Runtime objects in a multithreaded environment (.NET).

-examples

The following example demonstrates the use of GetForCurrentView to retrieve an instance EdgeGesture through which it then registers for each of the edge gesture events.

var edgeGesture = Windows.UI.Input.EdgeGesture.getForCurrentView();
edgeGesture.addEventListener("starting", onStarting);
edgeGesture.addEventListener("completed", onCompleted);
edgeGesture.addEventListener("canceled", onCanceled);

-see-also

Windows.UI.Input Classes, Windows.Devices.Input, Windows.UI.Core, Windows.UI.Input, Windows.UI.Input.Inking, Windows.UI.Xaml.Input, Custom user interactions, UX guidelines for custom user interactions, Touch design guidelines, User interaction mode sample, Focus visuals sample, Input: Device capabilities sample, Input: Simplified ink sample, Input: Windows 8 gestures sample, Input: XAML user input events sample, XAML scrolling, panning, and zooming sample, DirectX touch input sample, Input: Manipulations and gestures (C++) sample, Input: Touch hit testing sample, Input source identification sample, Touch injection sample, Win32 touch hit-testing sample