I have several paths nested inside a canvas. I want each path to display a MessageBox when the user double clicks on the path. I know the path class doesn’t have the MouseDoubleClick event, but the canvas class does so maybe that can help.
How do you create a MouseDoubleClick event for a Path?
The
Pathclass has theMouseDownevent. You can detect the number of clicks with theClickCountproperty of theMouseButtonEventArgs.Check http://www.switchonthecode.com/tutorials/wpf-tutorial-getting-the-doubleclick-event for more info.