Detect if user has finished drawing strokes in InkCanvas

Fei Xue - MSFT 1,111 Reputation points
2019-10-30T06:37:29.4+00:00

I am using VS2017 to develop my UWP app and my APP min target version is 10.14393.

Is there any event of InkCanvas I can use to detect whether user has finished drawing strokes or not.
I want to enable some button after user has drew strokes.

I tried the PointerReleased and PointerExit events, it seems not work.

Thanks.

Universal Windows Platform (UWP)
0 comments No comments
{count} votes

Accepted answer
  1. Roy Li - MSFT 33,501 Reputation points Microsoft Vendor
    2019-10-30T08:35:08.007+00:00

    Hello,

    Welcome to our Microsoft Q&A platform!

    Unfortunately, the InkCanvas has no useful events for you to use in your scenario, but the InkPresenter does. So in order to implement your requirement, please register those two stroke events: StrokesCollected and StrokeStarted, then you could start and stop a DispatcherTimer to figure out whether your user has stopped drawing or not.

    For more information and samples, please check the 'Dynamic recognition' section on this official document: Recognize Windows Ink strokes as text and shapes.

    Thanks.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.