views:

22

answers:

1

How can I customize the menu to the situation in WPF? I have a main window with a basic menu. In this window, I can load different UserControls and then I want the menu to be expanded with different menu options depending on which User Control is used.

In addition, I wonder how I add a MRU.

Example:

Main menu:
File
   Open
   -
   MRU
   -
   Exit


For viewing:
File
   Open
   Edit
   -
   MRU
   -
   Exit


In Editing
File
   Open
   Save
   Save as...
   -
   MRU
   -
   Exit
Edit
   Add
   Remove
   Move
   -
   Cancle Edit
+1  A: 

I would bind the menu to a Collection, and have the different UserControls alter the Collection when loaded.

Rachel