Hello I’m developing a WPF Desktop application using MVVM and I’ll like for my navigation module implement a menu like this one:
http://patterntap.com/tap/pattern/11543732834cb8a7ee18a51
I’m thinking to use a Menu control and change its appearance, but I don’t know if I can apply this style to another control in a simpler fashion, also as I’m using MVVM I need a control that allows command binding.
Instead of using a traditional menu, is there another control that I could use to accomplish the same results?
Thanks and regards from Colombia!!!
I would agree with Henk. You could make a custom
UserControl. TheStackPanelwithOrientation="Horizontal"part for the menu item names and customComboBoxes would be the easy bit. The tricker bit would be adjusting the defaultComboBoxControlTemplateto your liking.Here is a link to the deafult
ControlTemplatefor theComboBoxand an example… http://msdn.microsoft.com/en-us/library/ms752094(v=vs.85).aspxI think it looks like the menu you like might have two
ListBoxes in each drop down, but you could bind to theirItemsControlproperties. Happy tweaking.