UIElement3D.CaptureTouch(TouchDevice) UIElement3D.CaptureTouch(TouchDevice) UIElement3D.CaptureTouch(TouchDevice) Method

Definition

Attempts to force capture of a touch to this element.

public:
 bool CaptureTouch(System::Windows::Input::TouchDevice ^ touchDevice);
public bool CaptureTouch (System.Windows.Input.TouchDevice touchDevice);
member this.CaptureTouch : System.Windows.Input.TouchDevice -> bool

Parameters

touchDevice
TouchDevice TouchDevice TouchDevice

The device to capture.

Returns

true if the specified touch is captured to this element; otherwise, false.

Exceptions

Remarks

CaptureTouch will return false if the TouchDevice is currently captured to another element.

If CaptureTouch returns true, then the GotTouchCapture event is raised.

To release capture of a single touch from this element, use the ReleaseTouchCapture method and specify the touch device to release. To release all touches from this element, use the ReleaseAllTouchCaptures method.

Applies to

See also