Question

My adorner is drawn in code using the drawingContext in OnRender. I want the user to be able to click the adorner, or a button on it, to close it. What would I do in the adorner's MouseButtonEventHandler to do this?

I imagine I need to remove it from the adorner layer of the adorned control, but I can't see how I trigger that from the adorner itself.

Thanks in advance for any pointers.

Was it helpful?

Solution

Found a better solution - allow the user to drag the adorner (a sticky note in this case) out of the way.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top