1
Vote

Multiple menus appear when elements are on top of each other

description

I have a scenario where I have a UserControl on a Canvas and both have popup menus. They both have the proper RightClickElements set, but when I right-click on the UserControl, both popup menus appear. After reviewing the code, it appears to be because PopupMenuBase::TriggerElement_MouseRightButtonUp() does not set e.Handled = true, cause both menus to appear. This should set e.Handled = true, just as triggerElement_MouseRightButtonDown() does.

comments