Label.xaml 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. <ResourceDictionary
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
  4. <!-- Label Style -->
  5. <SolidColorBrush x:Key="Label_BD" Color="#FF1B1B1B"/>
  6. <SolidColorBrush x:Key="Label_BG" Color="Transparent"/>
  7. <SolidColorBrush x:Key="TitleLabel_BD" Color="White"/>
  8. <Style TargetType="{x:Type Label}">
  9. <Setter Property="SnapsToDevicePixels" Value="True"/>
  10. <Setter Property="FontFamily" Value="Segoe" />
  11. <Setter Property="FontSize" Value="25" />
  12. <Setter Property="MinHeight" Value="20" />
  13. <Setter Property="Background" Value="{DynamicResource Label_BG}" />
  14. <Setter Property="Foreground" Value="{DynamicResource Label_BD}" />
  15. <Setter Property="AllowDrop" Value="true"/>
  16. <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
  17. <Setter Property="ScrollViewer.PanningMode" Value="VerticalFirst"/>
  18. <Setter Property="Stylus.IsFlicksEnabled" Value="False"/>
  19. </Style>
  20. <Style x:Key="Label_Title" TargetType="{x:Type Label}">
  21. <Setter Property="FontSize" Value="20" />
  22. <Setter Property="FontFamily" Value="Segoe" />
  23. <Setter Property="Margin" Value="0,2,2,2"/>
  24. <Setter Property="Background" Value="#ff402b94" />
  25. <Setter Property="Foreground" Value="White" />
  26. </Style>
  27. <Style x:Key="Label_GridButton" TargetType="{x:Type Label}">
  28. <Setter Property="SnapsToDevicePixels" Value="True"/>
  29. <Setter Property="FontSize" Value="16" />
  30. <Setter Property="FontFamily" Value="Segoe" />
  31. <Setter Property="Margin" Value="0,2,2,2"/>
  32. <Setter Property="Background" Value="{DynamicResource Label_BG}" />
  33. <Setter Property="Foreground" Value="{DynamicResource Label_BD}" />
  34. <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
  35. <Setter Property="ScrollViewer.PanningMode" Value="VerticalFirst"/>
  36. </Style>
  37. <!-- Label_Top Style -->
  38. <SolidColorBrush x:Key="Label_Top_BG" Color="#FFC8E8FF"/>
  39. <SolidColorBrush x:Key="Label_Top_Shadow" Color="#FF1B1B1B"/>
  40. <SolidColorBrush x:Key="Label_Top_Highlight_Right" Color="White"/>
  41. <SolidColorBrush x:Key="Label_Top_Highlight_Bottom" Color="#FFD2D2D2"/>
  42. <SolidColorBrush x:Key="Grid_Foreground" Color="White"/>
  43. <SolidColorBrush x:Key="Grid_BG" Color="#FF1d41d5"/>
  44. <Style x:Key="Label_Grid" TargetType="{x:Type Label}">
  45. <Setter Property="SnapsToDevicePixels" Value="True"/>
  46. <Setter Property="BorderBrush" Value="#ff727996"/>
  47. <Setter Property="BorderThickness" Value="2"/>
  48. <Setter Property="FontSize" Value="25" />
  49. <Setter Property="Margin" Value="0,1,2,0"/>
  50. <Setter Property="Background" Value="{DynamicResource Grid_BG}" />
  51. <Setter Property="Foreground" Value="{DynamicResource Grid_Foreground}" />
  52. <Setter Property="VerticalContentAlignment" Value="Center"/>
  53. <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
  54. <Setter Property="ScrollViewer.PanningMode" Value="VerticalFirst"/>
  55. </Style>
  56. </ResourceDictionary>