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()
あとは、関連するものをパックするだけです。