Label.xaml 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  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. <SolidColorBrush x:Key="TitleLabel_GreenTitle_BD" Color="White"/>
  9. <Style TargetType="{x:Type Label}">
  10. <Setter Property="SnapsToDevicePixels" Value="True"/>
  11. <Setter Property="FontFamily" Value="Segoe" />
  12. <Setter Property="FontSize" Value="15" />
  13. <Setter Property="MinHeight" Value="20" />
  14. <Setter Property="Background" Value="{DynamicResource Label_BG}" />
  15. <Setter Property="Foreground" Value="{DynamicResource Label_BD}" />
  16. <Setter Property="AllowDrop" Value="true"/>
  17. <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
  18. <Setter Property="ScrollViewer.PanningMode" Value="VerticalFirst"/>
  19. <Setter Property="Stylus.IsFlicksEnabled" Value="False"/>
  20. </Style>
  21. <Style x:Key="Label_Title" TargetType="{x:Type Label}">
  22. <Setter Property="FontSize" Value="20" />
  23. <Setter Property="FontFamily" Value="Segoe" />
  24. <Setter Property="Margin" Value="0"/>
  25. <Setter Property="VerticalContentAlignment" Value="Center"/>
  26. <Setter Property="HorizontalContentAlignment" Value="Center"/>
  27. <Setter Property="Background" Value="#ff68d2c0" />
  28. <Setter Property="Foreground" Value="Black" />
  29. </Style>
  30. <Style x:Key="Label_SubTitle" TargetType="{x:Type Label}">
  31. <Setter Property="FontSize" Value="20" />
  32. <Setter Property="FontFamily" Value="Segoe" />
  33. <Setter Property="Margin" Value="0,2,2,2"/>
  34. <Setter Property="Background" Value="#ff68d2c0" />
  35. <Setter Property="Foreground" Value="White" />
  36. </Style>
  37. <Style x:Key="LabelGrid_Title" TargetType="{x:Type Label}">
  38. <Setter Property="FontSize" Value="18" />
  39. <Setter Property="FontFamily" Value="Segoe" />
  40. <Setter Property="VerticalContentAlignment" Value="Center"/>
  41. <Setter Property="Margin" Value="0"/>
  42. <Setter Property="Background" Value="#A8C8B0" />
  43. <Setter Property="Foreground" Value="Black" />
  44. <Setter Property="Template">
  45. <Setter.Value>
  46. <ControlTemplate TargetType="{x:Type Label}">
  47. <Border x:Name="border" Background="{TemplateBinding Background}" BorderBrush="#FF003117" BorderThickness="1" SnapsToDevicePixels="True">
  48. <TextBlock Text="{TemplateBinding Content}" Foreground="{TemplateBinding Foreground}" VerticalAlignment="Center" HorizontalAlignment="Center">
  49. <!--<TextBlock.Effect>
  50. <DropShadowEffect BlurRadius="3" ShadowDepth="2" Color="#FF008A40"/>
  51. </TextBlock.Effect>-->
  52. </TextBlock>
  53. </Border>
  54. </ControlTemplate>
  55. </Setter.Value>
  56. </Setter>
  57. </Style>
  58. <Style x:Key="LabelContent_Title" TargetType="{x:Type Label}">
  59. <Setter Property="FontSize" Value="18" />
  60. <Setter Property="FontFamily" Value="Segoe" />
  61. <Setter Property="VerticalContentAlignment" Value="Center"/>
  62. <Setter Property="Margin" Value="0"/>
  63. <Setter Property="Background" Value="White" />
  64. <Setter Property="Foreground" Value="Black" />
  65. <Setter Property="Template">
  66. <Setter.Value>
  67. <ControlTemplate TargetType="{x:Type Label}">
  68. <Border x:Name="border" Background="{TemplateBinding Background}" BorderBrush="#FF003117" BorderThickness="1" SnapsToDevicePixels="True">
  69. <TextBlock Text="{TemplateBinding Content}" Foreground="{TemplateBinding Foreground}" VerticalAlignment="Center" HorizontalAlignment="Center">
  70. </TextBlock>
  71. </Border>
  72. </ControlTemplate>
  73. </Setter.Value>
  74. </Setter>
  75. </Style>
  76. <Style x:Key="Label_GreenTitle" TargetType="{x:Type Label}">
  77. <Setter Property="FontSize" Value="20" />
  78. <Setter Property="FontFamily" Value="Segoe" />
  79. <Setter Property="Margin" Value="0,2,2,2"/>
  80. <Setter Property="Background" Value="#ff00998a" />
  81. <Setter Property="Foreground" Value="White" />
  82. </Style>
  83. <Style x:Key="Label_GreenSmallTitle" TargetType="{x:Type Label}">
  84. <Setter Property="FontSize" Value="16" />
  85. <Setter Property="FontFamily" Value="Segoe" />
  86. <Setter Property="Margin" Value="0,2,2,2"/>
  87. <Setter Property="Background" Value="#ff00998a" />
  88. <Setter Property="Foreground" Value="White" />
  89. </Style>
  90. <Style x:Key="Label_GridButton" TargetType="{x:Type Label}">
  91. <Setter Property="SnapsToDevicePixels" Value="True"/>
  92. <Setter Property="FontSize" Value="16" />
  93. <Setter Property="FontFamily" Value="Segoe" />
  94. <Setter Property="Margin" Value="0,2,2,2"/>
  95. <Setter Property="Background" Value="{DynamicResource Label_BG}" />
  96. <Setter Property="Foreground" Value="{DynamicResource Label_BD}" />
  97. <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
  98. <Setter Property="ScrollViewer.PanningMode" Value="VerticalFirst"/>
  99. </Style>
  100. <!-- Label_Top Style -->
  101. <SolidColorBrush x:Key="Label_Top_BG" Color="#FFC8E8FF"/>
  102. <SolidColorBrush x:Key="Label_Top_Shadow" Color="#FF1B1B1B"/>
  103. <SolidColorBrush x:Key="Label_Top_Highlight_Right" Color="White"/>
  104. <SolidColorBrush x:Key="Label_Top_Highlight_Bottom" Color="#FFD2D2D2"/>
  105. <Style x:Key="Label_Top" TargetType="{x:Type Label}">
  106. <Setter Property="SnapsToDevicePixels" Value="True"/>
  107. <Setter Property="FontSize" Value="14" />
  108. <Setter Property="Margin" Value="0,2,2,2"/>
  109. <Setter Property="Background" Value="{DynamicResource Label_BG}" />
  110. <Setter Property="Foreground" Value="{DynamicResource Foreground_Black}" />
  111. <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
  112. <Setter Property="ScrollViewer.PanningMode" Value="VerticalFirst"/>
  113. </Style>
  114. <SolidColorBrush x:Key="Grid_Foreground" Color="White"/>
  115. <SolidColorBrush x:Key="Grid_BG" Color="#FF1d41d5"/>
  116. <Style x:Key="Label_Grid" TargetType="{x:Type Label}">
  117. <Setter Property="SnapsToDevicePixels" Value="True"/>
  118. <Setter Property="BorderBrush" Value="#ff727996"/>
  119. <Setter Property="BorderThickness" Value="2"/>
  120. <Setter Property="FontSize" Value="25" />
  121. <Setter Property="Margin" Value="0,1,2,0"/>
  122. <Setter Property="Background" Value="{DynamicResource Grid_BG}" />
  123. <Setter Property="Foreground" Value="{DynamicResource Grid_Foreground}" />
  124. <Setter Property="VerticalContentAlignment" Value="Center"/>
  125. <Setter Property="FocusVisualStyle" Value="{x:Null}"/>
  126. <Setter Property="ScrollViewer.PanningMode" Value="VerticalFirst"/>
  127. </Style>
  128. </ResourceDictionary>