InkPresenter.StrokesCollected 事件

定义

当应用程序线程将一个或多个墨迹笔划处理 (“湿”到“干”) 时发生。

默认情况下,墨迹笔划在低延迟的后台线程上进行处理,并在绘制时呈现湿笔划。 笔划 (笔或手指抬起,或者鼠标按钮) 松开时,笔划会在 UI 线程上进行处理,并干涸地呈现到应用程序内容) 上方的 InkCanvas 层 (。 如果 UI 线程正忙,当线程可用时,可能会处理多个墨迹笔划, (收集) 。

// Register
event_token StrokesCollected(TypedEventHandler<InkPresenter, InkStrokesCollectedEventArgs const&> const& handler) const;

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

// Revoke with event_revoker
InkPresenter::StrokesCollected_revoker StrokesCollected(auto_revoke_t, TypedEventHandler<InkPresenter, InkStrokesCollectedEventArgs const&> const& handler) const;
public event TypedEventHandler<InkPresenter,InkStrokesCollectedEventArgs> StrokesCollected;
function onStrokesCollected(eventArgs) { /* Your code */ }
inkPresenter.addEventListener("strokescollected", onStrokesCollected);
inkPresenter.removeEventListener("strokescollected", onStrokesCollected);
- or -
inkPresenter.onstrokescollected = onStrokesCollected;
Public Custom Event StrokesCollected As TypedEventHandler(Of InkPresenter, InkStrokesCollectedEventArgs) 

事件类型

适用于

另请参阅