UIElement.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
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 false
zurück, wenn der TouchDevice aktuell in einem anderen Element aufgezeichnet wird.CaptureTouch will return false
if the TouchDevice is currently captured to another element.
Wenn CaptureTouch true
zurückgibt, wird das Ereignis GotTouchCapture 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 eines einzelnen Berührungen von diesem Element freizugeben.To release capture of a single touch from this element, use the ReleaseTouchCapture method and specify the touch device to release. Um alle Berührungen von diesem Element freizugeben, verwenden Sie die ReleaseAllTouchCaptures-Methode.To release all touches from this element, use the ReleaseAllTouchCaptures method.