Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
290
XamRibbon.ApplicationMenu2010 mvvm binding
posted

Hi

I am building WPF Prism/MVVM app and would like to use XamRibbon.ApplicationMenu2010 as application menu.

I have multiple modules adding its  menu items to ShellViewModel.NavigationManager.TreeMenu collection. then I bind

ApplicationMenu2010  ItemsSource to NavigationManager.TreeMenu collection:

<igRibbon:ApplicationMenu2010  ItemsSource="{Binding NavigationManager.TreeMenu}"  ItemTemplate="{StaticResource MenuTemplate}">  

I use data template to render ApplicationMenu2010Item as ApplicationMenu2010Item:

<DataTemplate x:Key="MenuTemplate">  <igRibbon:ApplicationMenu2010Item  Header="{Binding Menu.Caption}">   </igRibbon:ApplicationMenu2010Item> </DataTemplate>  

Question:

How can I add support for ApplicationMenu2010Item.Content and ApplicationMenu2010Separator using binding to viewModel and data templates?

Thank you Dmitri