Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个在 InkCanvasEditingMode.Ink 中工作的 InkCanvas。但是当用户按下右键时,我想擦除整个笔画。请帮我一个建议好吗?
我不确定您愿意擦除哪个笔画,但 InkCanvas 有一个“Stokes”属性,其中包含画布的所有笔画。例如,要从画布中删除所有笔划:
inkCanvas.Strokes.Clear()
现在你所要做的就是打掉相关的。