Show menu programmatically in WPF

Denis picture Denis · Jul 22, 2009 · Viewed 29.2k times · Source

How can I open menu (System.Windows.Controls.Menu) programmatically in WPF?

Answer

Andreas Grech picture Andreas Grech · Jul 22, 2009

Get hold of the menu item, and do this :

_menuItem.IsSubmenuOpen = true;