开发者

Get removed elements in InkCanvas

开发者 https://www.devze.com 2022-12-10 08:24 出处:网络
I was wonder if there was any method in which I can access an element which the user removes. For example when the InkCanvas is set to Select users can select elements and press delete to remove them.

I was wonder if there was any method in which I can access an element which the user removes. For example when the InkCanvas is set to Select users can select elements and press delete to remove them. Is there any way of getting to this item if they deleted it? Any help is much appreciated.

Cheers,

Nilu

Update

@Drew: Not really. Say for example I have an image on the InkCanvas. I have some strokes attached to this image. If the user selects the image and then deletes it, I want the stroke开发者_运维技巧s to be removed.


Does handling the StrokeErasing event not give you what you want? You should be able to access the Stroke being erased from the InkCanvasStrokeErasingEventArgs::Stroke property.

0

精彩评论

暂无评论...
验证码 换一张
取 消