ManipulationStartingEventArgs.Cancel 方法

定义

取消操作并将触摸提升为鼠标事件。Cancels the manipulation and promotes touch to mouse events.

public:
 bool Cancel();
public bool Cancel ();
member this.Cancel : unit -> bool
Public Function Cancel () As Boolean

返回

如果触摸成功提升为鼠标事件,则为 true;否则为 falsetrue if touch was successfully promoted to mouse events, otherwise, false.

注解

如果该方法成功, 则默认TouchDevice情况下, 将上一次触摸事件发送到鼠标按下事件, 以后操作事件不会发生。If the method succeeds, the default TouchDevice sends previous touch down events as mouse down events and future manipulation events do not occur.

适用于