<Style x:Key="badMenuItem_ItemContainerStyle" TargetType="MenuItem"> <Setter Property="Header" Value="{Binding Header}" /> <Setter Property="Icon"> <Setter.Value> <Image Width="20" Height="20" Source="{Binding ImageSource}" /> </Setter.Value> </Setter></Style><Image x:Key="image" Source="{Binding ImageSource}" Width="20" Height="20" x:Shared="False"/> <Style x:Key="goodMenuItem_ItemContainerStyle" TargetType="MenuItem"> <Setter Property="Header" Value="{Binding Header}" /> <Setter Property="Icon" Value="{StaticResource image}" /></Style>