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.

Developer technologies | Universal Windows Platform (UWP)

Locked Question. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
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.

Was this answer helpful?

3 people found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.

    2 deleted comments

    Comments have been turned off. Learn more