У меня есть контекстное меню. Он связан с некоторой коллекцией и имеет определенный ItemTemplate следующим образом:
<ContextMenu
ItemsSource={Binding ...}
ItemTemplate={StaticResource itemTemplate}
/>
itemTemplate - это простой DataTemplate с TextBlock:
<DataTemplate x:Key="itemTemplate">
<TextBlock Text={Binding ...} />
</DataTemplate>
Как связать свойство Command для MenuItem с базовым свойством объекта?