UIElement.CaptureTouch(TouchDevice) UIElement.CaptureTouch(TouchDevice) UIElement.CaptureTouch(TouchDevice) Method

Definición

Intenta forzar la captura de una entrada táctil en este elemento.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

Parámetros

touchDevice
TouchDevice TouchDevice TouchDevice

Dispositivo que se va a capturar.The device to capture.

Devoluciones

Es true si la entrada táctil especificada se capturó en este elemento; de lo contrario, es false.true if the specified touch is captured to this element; otherwise, false.

Excepciones

touchDevice es null.touchDevice is null.

Comentarios

CaptureTouch devolverá false si el TouchDevice se captura actualmente a otro elemento.CaptureTouch will return false if the TouchDevice is currently captured to another element.

Si CaptureTouch devuelve true, el GotTouchCapture provoca el evento.If CaptureTouch returns true, then the GotTouchCapture event is raised.

Para liberar la captura de un solo toque de este elemento, utilice el ReleaseTouchCapture método y especifique el dispositivo táctil para liberar.To release capture of a single touch from this element, use the ReleaseTouchCapture method and specify the touch device to release. Para liberar todos los dispositivos táctiles de este elemento, utilice el ReleaseAllTouchCaptures método.To release all touches from this element, use the ReleaseAllTouchCaptures method.

Se aplica a

Consulte también: