ederseqi
ederseqi

Reputation: 65

What does TouchDevice.Capture() actually do in WPF?

I can't seem to find any real documentation on what TouchDevice.Capture() really does. When and / or how should I use it? Or where can I read more about it?

Upvotes: 2

Views: 4103

Answers (1)

Clemens
Clemens

Reputation: 128060

It captures touch input for the specified IInputElement, in the same way as mouse input is captured (see the Remarks in MouseDevice.Capture).

When touch input is captured, the element continues to receive touch events even if the touch position lies outside the hit test area of the element.

You may try the example code in TouchDevice with and without capture and observe the different behaviour.

Upvotes: 2

Related Questions