UIElement.CaptureTouch(TouchDevice) Método

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
Public Function CaptureTouch (touchDevice As TouchDevice) As Boolean

Parámetros

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 está capturado actualmente en otro elemento.CaptureTouch will return false if the TouchDevice is currently captured to another element.

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

Para liberar la captura de un solo toque de este elemento, use el método ReleaseTouchCapture 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, utilice el método ReleaseAllTouchCaptures.To release all touches from this element, use the ReleaseAllTouchCaptures method.

Se aplica a

Consulte también: