1

I want to make eraser types like those in Windows 10 Creators Update Sketchpad , that include not only stroke eraser but also small or large erasers.

Currently, the default InkToolbar control only provide stroke eraser, the user can only erase the entire stroke but not a part of it. And Windows Universal Samples on GitHub is not providing any samples on that.

Does anyone know how to make custom eraser types?

lindexi
  • 4,182
  • 3
  • 19
  • 65
Edi Wang
  • 53
  • 3
  • Hello @Edi dashen.I think you can set the eraser size but my vs bugongzuole that I cant confirm my way. – lindexi May 04 '17 at 07:03
  • Do you use the `StrokeContainer` to draw the line? If so, we can only remove the line. We can not remove a part of the line. – Jayden May 05 '17 at 10:03
  • @JaydenGu-MSFT Yes, I use the StrokeContainer. Thanks for telling me that, I know this is a limitation in StrokeContainer now. But can we have any samples for how to erase a part of the line on Windows Universal Samples repository? I really don't have any idea how to do that. – Edi Wang Dec 29 '17 at 03:20

1 Answers1

-2

You can have a look at Microsoft's Coloring book sample where you can erase cell(Portion of stroke). They have created a Custom InkToolbar with erase cell option.

https://github.com/Microsoft/Windows-appsample-coloringbook

Vignesh
  • 1,824
  • 2
  • 10
  • 27