InkPresenter.StrokeInput Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets an InkStrokeInput object for managing ink input events.
public:
property InkStrokeInput ^ StrokeInput { InkStrokeInput ^ get(); };
InkStrokeInput StrokeInput();
public InkStrokeInput StrokeInput { get; }
var inkStrokeInput = inkPresenter.strokeInput;
Public ReadOnly Property StrokeInput As InkStrokeInput
Property Value
The ink input.
Examples
Here, we declare a StrokeStarted listener.
inkCanvas.InkPresenter.StrokeInput.StrokeStarted += StrokeInput_StrokeStarted;
We then define the corresponding handler, which clears any selected strokes when a new ink stroke is started.
private void StrokeInput_StrokeStarted(InkStrokeInput sender, Windows.UI.Core.PointerEventArgs args)
{
var strokes = inkCanvas.InkPresenter.StrokeContainer.GetStrokes();
foreach (var stroke in strokes)
{
stroke.Selected = false;
}
ClearDrawnBoundingRect();
}
Applies to
See also
- Pen and stylus interactions
- Get started: Support ink in your UWP app
- Ink analysis sample (basic) (C#)
- Ink handwriting recognition sample (C#)
- Save and load ink strokes from an Ink Serialized Format (ISF) file
- Save and load ink strokes from the clipboard
- Ink toolbar location and orientation sample (basic)
- Ink toolbar location and orientation sample (dynamic)
- Coloring book sample
- Family notes sample
- Inking sample (JavaScript)
- Simple inking sample (C#/C++)
- Complex inking sample (C++)
- Ink analysis sample