ContentElement.CaptureTouch(TouchDevice) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Public Function CaptureTouch (touchDevice As TouchDevice) As Boolean
- touchDevice
- TouchDevice
The device to capture.
true
if the specified touch is captured to this element; otherwise, false
.
touchDevice
is null
.
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.
Product | Versions |
---|---|
.NET Framework | 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Windows Desktop | 3.0, 3.1, 5, 6, 7, 8, 9 |
.NET feedback
.NET is an open source project. Select a link to provide feedback: