ContentElement.CaptureTouch(TouchDevice) Methode
Definition
Versucht, die Fingereingabe für dieses Element zu erzwingen.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
Parameter
- touchDevice
- TouchDevice
Das zu erfassende Gerät.The device to capture.
Gibt zurück
true
, wenn die angegebene Fingereingabe für dieses Element erfasst wird, andernfalls false
.true
if the specified touch is captured to this element; otherwise, false
.
Ausnahmen
touchDevice
ist null
.touchDevice
is null
.
Hinweise
CaptureTouch Gibt zurück false
, wenn der TouchDevice gegenwärtig in einem anderen Element aufgezeichnet wird.CaptureTouch will return false
if the TouchDevice is currently captured to another element.
Wenn CaptureTouch zurückgibt true
, wird das- GotTouchCapture Ereignis ausgelöst.If CaptureTouch returns true
, then the GotTouchCapture event is raised.
Verwenden Sie die ReleaseTouchCapture -Methode, und geben Sie das zu veröffentlichenden Fingerabdruck Gerät an, um die Erfassung einer einzelnen Fingereingabe von diesem Element aufzuheben.To release capture of a single touch from this element, use the ReleaseTouchCapture method and specify the touch device to release. Verwenden Sie die-Methode, um alle Berührungen von diesem Element freizugeben ReleaseAllTouchCaptures .To release all touches from this element, use the ReleaseAllTouchCaptures method.