CoreWetStrokeUpdateSource.WetStrokeCanceled 事件

定义

InkPresenter 以意外方式停止处理墨迹笔划、 CoreWetStrokeDisposition 设置为 Canceled 或输入无效(指示笔划未完成)时发生。

例如,当墨迹输入冒泡到另一个系统事件处理程序(如上下文菜单)时。

// Register
event_token WetStrokeCanceled(TypedEventHandler<CoreWetStrokeUpdateSource, CoreWetStrokeUpdateEventArgs const&> const& handler) const;

// Revoke with event_token
void WetStrokeCanceled(event_token const* cookie) const;

// Revoke with event_revoker
CoreWetStrokeUpdateSource::WetStrokeCanceled_revoker WetStrokeCanceled(auto_revoke_t, TypedEventHandler<CoreWetStrokeUpdateSource, CoreWetStrokeUpdateEventArgs const&> const& handler) const;
public event TypedEventHandler<CoreWetStrokeUpdateSource,CoreWetStrokeUpdateEventArgs> WetStrokeCanceled;
function onWetStrokeCanceled(eventArgs) { /* Your code */ }
coreWetStrokeUpdateSource.addEventListener("wetstrokecanceled", onWetStrokeCanceled);
coreWetStrokeUpdateSource.removeEventListener("wetstrokecanceled", onWetStrokeCanceled);
- or -
coreWetStrokeUpdateSource.onwetstrokecanceled = onWetStrokeCanceled;
Public Custom Event WetStrokeCanceled As TypedEventHandler(Of CoreWetStrokeUpdateSource, CoreWetStrokeUpdateEventArgs) 

事件类型

注解

墨迹笔划始终触发 WetStrokeCompleted 或 WetStrokeCanceled 事件。

对于 WetStrokeCompleted 和 WetStrokeCanceled 事件,NewInkPoints 始终为空。

对于 WetStrokeStopping 事件,NewInkPoints 可能为空。

适用于

另请参阅