Main.xaml 1.0 KB

12345678910111213141516171819202122
  1. <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  3. x:Class="InABox.DynamicGrid.MainResources">
  4. <Style x:Key="NonHighlightMenuItem" TargetType="{x:Type MenuItem}">
  5. <Setter Property="Template">
  6. <Setter.Value>
  7. <ControlTemplate TargetType="{x:Type MenuItem}">
  8. <Border Background="{TemplateBinding Background}">
  9. <ContentPresenter Content="{TemplateBinding Header}" Margin="35 5 10 5"/>
  10. </Border>
  11. <ControlTemplate.Triggers>
  12. <Trigger Property="IsHighlighted" Value="True">
  13. <Setter Property="Background" Value="Transparent"/>
  14. </Trigger>
  15. </ControlTemplate.Triggers>
  16. </ControlTemplate>
  17. </Setter.Value>
  18. </Setter>
  19. </Style>
  20. </ResourceDictionary>