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

CaptureTouchdevolverá false si TouchDevice el está capturado actualmente en otro elemento.CaptureTouch will return false if the TouchDevice is currently captured to another element.

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

Para liberar la captura de un solo toque de este elemento, use ReleaseTouchCapture el método y especifique el dispositivo táctil que se va a 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 toques de este elemento, use ReleaseAllTouchCaptures el método.To release all touches from this element, use the ReleaseAllTouchCaptures method.

Se aplica a

Consulte también: