ChartPageStyle.xaml 1.7 KB

12345678910111213141516171819202122232425262728
  1. <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  2. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  3. xmlns:data1="clr-namespace:Muchinfo.MTPClient.Data;assembly=Client.Data">
  4. <HierarchicalDataTemplate x:Key="MenuDataTemplate"
  5. DataType="{x:Type data1:SysMenuItem}"
  6. ItemsSource="{Binding Children}">
  7. <TextBlock MinWidth="30"
  8. Foreground="{DynamicResource MainForegroundBrush}"
  9. Padding="3"
  10. Text="{Binding Title}" />
  11. </HierarchicalDataTemplate>
  12. <Style x:Key="MenuCommonItemStyle" TargetType="{x:Type MenuItem}">
  13. <Setter Property="Command" Value="{Binding Command}" />
  14. <Setter Property="CommandParameter" Value="{Binding}" />
  15. <Setter Property="IsCheckable" Value="{Binding IsCheckable}" />
  16. <Setter Property="IsChecked" Value="{Binding IsChecked, Mode=TwoWay}" />
  17. <Setter Property="IsEnabled" Value="{Binding IsEnabled}" />
  18. <Setter Property="Background" Value="{DynamicResource WindowHeadBrush}" />
  19. <Setter Property="HorizontalContentAlignment" Value="Left" />
  20. <Setter Property="VerticalContentAlignment" Value="Center" />
  21. <Setter Property="Padding" Value="2" />
  22. <Setter Property="BorderBrush" Value="{DynamicResource CommonBorderBrush}" />
  23. <Setter Property="BorderThickness" Value="0,0,0,1" />
  24. <Setter Property="Foreground" Value="{DynamicResource MainForegroundBrush}" />
  25. <Setter Property="Template" Value="{DynamicResource CommonMenuItemTemplate}" />
  26. </Style>
  27. </ResourceDictionary>