InkPresenter.StrokesCollected InkPresenter.StrokesCollected InkPresenter.StrokesCollected InkPresenter.StrokesCollected InkPresenter.StrokesCollected Event

Definition

Occurs when one or more ink strokes are processed ("wet" to "dry") by the application thread.

By default, an ink stroke is processed on a low-latency background thread and rendered wet as it is drawn. When the stroke is completed (pen or finger lifted, or mouse button released), the stroke is processed on the UI thread and rendered dry to the InkCanvas layer (above the application content). If the UI thread is busy, more than one ink stroke might be processed (collected) when the thread becomes available.

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

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

// Revoke with event_revoker
StrokesCollected_revoker StrokesCollected(auto_revoke_t, TypedEventHandler<InkPresenter, InkStrokesCollectedEventArgs> const& handler) const;
public event TypedEventHandler<InkPresenter, InkStrokesCollectedEventArgs> StrokesCollected
Public Event StrokesCollected As TypedEventHandler (Of InkPresenter, InkStrokesCollectedEventArgs)
function onStrokesCollected(eventArgs){/* Your code */}


inkPresenter.addEventListener("strokescollected", onStrokesCollected);
inkPresenter.removeEventListener("strokescollected", onStrokesCollected);

See also