views:

11

answers:

0

Hi everyone, I have a listview and want to have 2 context menus for it: 1) when right-click on an item (called Menu 1) and 2) when right-click on elsewhere spaces except the items (called Menu 2). There are sub set of menu-items shared between the two - let's call this CommonMenu. My test application is store here.

My problem is: when testing right click to open the two context menu, e.g. 1st click on an item then 2nd click on the list elsewhere or vise versa, the CommonMenu's items will disapper!

I don't know why. Please help!

More about the technical I used:

  • Menu 2 is simply used WPF context menu for the listview.
  • The Menu 1 used ListView.ItemContainerStyle
  • The CommonMenu used CollectionContainer

Please let me know if you need any furhter information.