How to subscribe 'DeleteKeyPressed' event properly?
Posted: Mon Mar 28, 2011 4:08 pm
I have an AnnotationViewer control and I subscribed the 'DeleteKeyPressed' event.
The problem is that, when I select a LineAnnotation (that is inside of the annotationViewer) and delete it, the event occurs but the the selected annotation (linneAnnotation) doesn't delete after my subscribed method event occurs.
I've already tryed to call base method DeleteKeyPressed but it doesn't exists and an error is given.
When I remove the DeleteKeyPressed event, all works out.
What should I do to subscribe the event and delete the SelectedAnnotation too?
thanks!
The problem is that, when I select a LineAnnotation (that is inside of the annotationViewer) and delete it, the event occurs but the the selected annotation (linneAnnotation) doesn't delete after my subscribed method event occurs.
I've already tryed to call base method DeleteKeyPressed but it doesn't exists and an error is given.
When I remove the DeleteKeyPressed event, all works out.
What should I do to subscribe the event and delete the SelectedAnnotation too?
thanks!