DataTemplate to generate Menu with MVVM
I'm trying to use a DataTemplate to create a Menu from my ViewModels with respect to MVVM. Basically, I've created several classes which will store information about my Menu structure. I then want to realize that menu stucture as a WPF Menu using a DataTemplate. I have a menu service which allows different components to register new menus and items within the menus. Here's how I've organized my menu information (ViewModel) I have the following classes: MainMenuViewModel - Contains a TopLevelMenuViewModelCollection (a collection of top level menus) TopLevelMenuViewModel - Contains a