Skip to main content

TouchCapture Class

NuGet: GHIElectronics.TinyCLR.UI
Assembly: GHIElectronics.TinyCLR.UI
Namespace: GHIElectronics.TinyCLR.UI.Input

Provides methods for capturing touch input to an element.

public static class TouchCapture

Properties​

Captured​

public static UIElement Captured { get; }

Returns the element that currently has touch capture, or null.

Methods​

Capture(UIElement element)​

public static bool Capture(UIElement element)

Captures touch input to the specified element.

Returns bool

Capture(UIElement element, CaptureMode mode)​

public static bool Capture(UIElement element, CaptureMode mode)

Captures touch input to the specified element using the given capture mode.

Returns bool