CoreWetStrokeUpdateSource.WetStrokeCanceled Event

Definition

Occurs when the InkPresenter stops processing an ink stroke in an unexpected way, CoreWetStrokeDisposition is set to Canceled, or the input is invalid, indicating the stroke was not completed.

For example, when ink input bubbles up to another system event handler, such as a context menu.

// 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
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) 

Event Type

TypedEventHandler<CoreWetStrokeUpdateSource,CoreWetStrokeUpdateEventArgs>

Remarks

An ink stroke always triggers either a WetStrokeCompleted or a WetStrokeCanceled event.

NewInkPoints is always empty for the WetStrokeCompleted and WetStrokeCanceled events.

NewInkPoints might be empty for the WetStrokeStopping event.

Applies to

See also