I recently spent far too long trying to figure out how to use the ItemContainerTemplate and the UsesItemContainerTemplate property on a menu.
Basically my problem was that no matter what I did, it seemed, it did not pick up on the templates.
<Menu Grid.Row="1" ItemsSource="{Binding MenuItems}" UsesItemContainerTemplate="True">
<Menu.Resources>
<ItemContainerTemplate DataType="{x:Type vm:SeparatorViewModel}">
<Separator />
</ItemContainerTemplate>
<ItemContainerTemplate DataType="{x:Type vm:ActionItemViewModel}">
<MenuItem Header="{Binding Path=Caption}" ItemsSource="{Binding SubItems}" />
</ItemContainerTemplate>
</Menu.Resources>
</Menu>
It would just use MenuItem as the container always.
But why?