zertac / WPF-Whiteboard

C# WPF Canvas Whiteboard Library for .Net Framework
26 stars 3 forks source link

Ink objects not being deleted using Selector.DeleteSelected() function #17

Open rhyland opened 2 years ago

rhyland commented 2 years ago

@zertac

Thanks so much for this awesome drawing library!

I am using it on my current project, which displays stock charts; and, uses XDrawerLib to allow annotations on the charts.

I did however; find a bug, with the "Ink" tool. After drawing an "Ink" object and in code using the following statement:

Selector.DeleteSelected();

then the code does not delete it. If (as in your example) the "clean" function is used; then, all the objects are deleted (even "Ink" ones).

Could you please look into why the "Ink" objects are not being deleted using the above statement and fix it?

Thanks

zertac commented 2 years ago

Hi @rhyland sorry for late reply. I couldn't check my personal github account for a long time. I will check it and reply you quickly.