Click here to Skip to main content
15,891,633 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am developing an application using WPF with C#.
I am showing a User Control as a Context Menu.
The User Control displays a list of Buttons from DataGrid,
now what i need is to show a Context Menu for the Button while the previous ContextMenu(i.e. User Control) should be open.
The ContextMenu for buttons is loaded dynamically from code, I tried using the properties
cMenu.IsOpen=true
each time when the button is clicked, to stay the Parent context menu opened. Its working fine, but it shows like a Reloading effect of parent context menu.
Kindly tell me how to avoid that reloading effect or any other ideas to implement my requirement.

Requirement is
1.Show UserControl as ContextMenu
2.Load a DataGrid with buttons in UserControl
3.Show ContextMenu for the buttons without closing the ContextMenu or Reloading the ContextMenu
Posted
Updated 20-Nov-13 0:48am
v2
Comments
Maciej Los 20-Nov-13 16:24pm    
Are you talking about nested contextmenu?
Have you seen this: http://www.a2zdotnet.com/View.aspx?Id=92[^]

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900