CoreWetStrokeUpdateSource Class

Definition

Represents the InkPresenter that manages the input, processing, and rendering of ink stroke data.

public ref class CoreWetStrokeUpdateSource sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 196608)]
/// [Windows.Foundation.Metadata.DualApiPartition(version=167772162)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Static(Windows.UI.Input.Inking.Core.ICoreWetStrokeUpdateSourceStatics, 196608, "Windows.Foundation.UniversalApiContract")]
/// [Windows.Foundation.Metadata.WebHostHidden]
class CoreWetStrokeUpdateSource sealed
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 196608)]
[Windows.Foundation.Metadata.DualApiPartition(version=167772162)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Static(typeof(Windows.UI.Input.Inking.Core.ICoreWetStrokeUpdateSourceStatics), 196608, "Windows.Foundation.UniversalApiContract")]
[Windows.Foundation.Metadata.WebHostHidden]
public sealed class CoreWetStrokeUpdateSource
Public NotInheritable Class CoreWetStrokeUpdateSource
Inheritance
CoreWetStrokeUpdateSource
Attributes

Windows 10 requirements

Device family
Windows 10 Anniversary Edition (introduced in 10.0.14393.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v3.0)

Remarks

Standard Windows.UI.Input.Inking events occur after ink strokes have been rendered.

Use the Windows.UI.Input.Inking.Core events to process "wet" ink data before it is rendered by the InkPresenter. This can be useful when providing a digital stencil, such as a ruler or protractor, to constrain and modify a stroke while it is "wet", or mask select areas of the canvas from ink strokes.

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

Properties

InkPresenter

Gets the InkPresenter object that manages the input, processing, and rendering of ink stroke data.

Methods

Create(InkPresenter)

Retrieves a CoreWetStrokeUpdateSource object for handling "wet" ink strokes prior to processing by an InkPresenter object.

Events

WetStrokeCanceled

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.

WetStrokeCompleted

Occurs after the InkPresenter stops processing an ink stroke (WetStrokeStopping ) or CoreWetStrokeDisposition is set to Completed, indicating the stroke is complete.

Subsequent ink input is considered a new stroke.

WetStrokeContinuing

Occurs after the InkPresenter starts processing an ink stroke and before it stops processing the same stroke, indicating ink data continues to be captured.

WetStrokeStarting

Occurs when the InkPresenter starts processing an ink stroke.

WetStrokeStopping

Occurs when the InkPresenter stops processing an ink stroke, but before the stroke is finalized (WetStrokeCompleted ).

Applies to

See also