I'm trying to convert my context menu with a data bound sub menu to ribbon menu. The follow is my current MenuItem
<MenuItem DisplayMemberPath="Name" Header="Book Grouping" ItemsSource="{Binding ShelfGroupingList}" Visibility="{Binding IsShelfOptionsSupported, Converter={StaticResource BooleanToVisibilityConverter}}"><MenuItem.ItemContainerStyle><Style TargetType="MenuItem"><Setter Property="IsCheckable" Value="True" /><Setter Property="IsChecked" Value="{Binding IsChecked}" /></Style> /MenuItem.ItemContainerStyle></MenuItem>
I'm assuming I have to use a PopUpButton. This is my atempt :
<ribbon:PopupButton Label="Book Grouping" KeyTipAccessText="G" Visibility="{Binding IsShelfOptionsSupported, Converter={StaticResource BooleanToVisibilityConverter}}"><ribbon:PopupButton.PopupContent ><ribbon:Menu ItemsSource="{Binding ShelfGroupingList}" > DisplayMemberPath="Name"</ribbon:Menu></ribbon:PopupButton.PopupContent></ribbon:PopupButton>
But I can't figure out how to get the ItemContainerStyle where I bind the IsChecked property. This does display the sub menu but it just display the names.
So what do I need to do? Is it even posible?