UIElement.ReleaseStylusCapture 方法

定义

如果此元素具有触笔设备捕获,则释放该捕获。Releases the stylus device capture, if this element held the capture.

public:
 virtual void ReleaseStylusCapture();
public void ReleaseStylusCapture ();
abstract member ReleaseStylusCapture : unit -> unit
override this.ReleaseStylusCapture : unit -> unit
Public Sub ReleaseStylusCapture ()

实现

注解

如果此元素不包含捕获,则调用此方法将不起作用。If this element did not hold the capture, calling this method has no effect. 在调用此方法之前,请考虑检查 IsStylusCaptured 的值。Consider checking the value of IsStylusCaptured before you call this method.

适用于