0

I have an InkCanvas that works in the InkCanvasEditingMode.Ink. But I want to erase the entire stroke when the user presses the right button. Help me with an advise, please?

Lullaby
  • 427
  • 9
  • 23

1 Answers1

0

I'm not sure which stroke you are willing to erase, but InkCanvas has a "Stokes" property that contains all strokes of the canvas. For example, to remove all strokes from canvas:

inkCanvas.Strokes.Clear() 

Now all you have to do is to puck the relevant one.

Philip Derbeko
  • 524
  • 1
  • 4
  • 10