Style.xaml 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. <!--即将弃用-->
  2. <Style TargetType="Ellipse">
  3. <Setter Property="Fill" Value="{DynamicResource ColorBrush3}" />
  4. <Setter Property="HorizontalAlignment" Value="Left" />
  5. <Setter Property="Height" Value="8" />
  6. <Setter Property="Width" Value="8" />
  7. <Setter Property="Margin" Value="0,0,10,0" />
  8. </Style>
  9. <Style TargetType="TextBlock">
  10. <Setter Property="TextWrapping" Value="Wrap" />
  11. <Setter Property="HorizontalAlignment" Value="Left" />
  12. <Setter Property="FontSize" Value="14" />
  13. <Setter Property="Foreground" Value="Black" />
  14. </Style>
  15. <Style x:Key="PGTextBlock" TargetType="TextBlock">
  16. <Setter Property="TextWrapping" Value="Wrap" />
  17. <Setter Property="Margin" Value="25,5,0,5" />
  18. <Setter Property="FontSize" Value="16" />
  19. </Style>
  20. <Style x:Key="ListItem" TargetType="TextBlock">
  21. <Setter Property="Margin" Value="10,-13.5,5,15" />
  22. <Setter Property="TextWrapping" Value="Wrap" />
  23. <Setter Property="HorizontalAlignment" Value="Left" />
  24. <Setter Property="FontSize" Value="14" />
  25. <Setter Property="Foreground" Value="Black" />
  26. </Style>
  27. <Style x:Key="ListItemLink" TargetType="local:MyTextButton">
  28. <Setter Property="Margin" Value="15,-15,5,15" />
  29. <Setter Property="TextElement.FontSize" Value="20" />
  30. </Style>
  31. <Style x:Key="ListStyle" TargetType="StackPanel">
  32. <Setter Property="Margin" Value="22,0,14,5" />
  33. </Style>
  34. <Style x:Key="Read" TargetType="local:MyButton">
  35. <Setter Property="Margin" Value="0,0,5,5" />
  36. <Setter Property="Height" Value="35" />
  37. <Setter Property="Padding" Value="13,0,13,0" />
  38. <Setter Property="EventType" Value="打开网页" />
  39. </Style>
  40. <Style x:Key="Read0" TargetType="local:MyButton" BasedOn="{StaticResource Read}">
  41. <Setter Property="Grid.Column" Value="0" />
  42. <Setter Property="Text" Value="Minecraft Wiki" />
  43. <!--<Setter Property="ColorType" Value="Highlight"/>-->
  44. </Style>
  45. <Style x:Key="Read0+" TargetType="local:MyButton" BasedOn="{StaticResource Read0}">
  46. <Setter Property="Grid.Row" Value="0" />
  47. <Setter Property="Grid.ColumnSpan" Value="3" />
  48. </Style>
  49. <Style x:Key="Read1" TargetType="local:MyButton" BasedOn="{StaticResource Read}">
  50. <Setter Property="Grid.Column" Value="1" />
  51. <Setter Property="Text" Value="MCBBS" />
  52. </Style>
  53. <Style x:Key="Read1+" TargetType="local:MyButton" BasedOn="{StaticResource Read1}">
  54. <Setter Property="Grid.Column" Value="0" />
  55. <Setter Property="Grid.Row" Value="1" />
  56. </Style>
  57. <Style x:Key="Read2" TargetType="local:MyButton" BasedOn="{StaticResource Read}">
  58. <Setter Property="Grid.Column" Value="1" />
  59. <Setter Property="Text" Value="官网" />
  60. </Style>
  61. <Style x:Key="Read2+" TargetType="local:MyButton" BasedOn="{StaticResource Read2}">
  62. <Setter Property="Grid.Column" Value="1" />
  63. <Setter Property="Grid.Row" Value="1" />
  64. </Style>
  65. <Style x:Key="ReadR" TargetType="local:MyButton" BasedOn="{StaticResource Read}">
  66. <Setter Property="Grid.Column" Value="3" />
  67. <Setter Property="Text" Value="Reddit" />
  68. </Style>
  69. <Style x:Key="ReadR+" TargetType="local:MyButton" BasedOn="{StaticResource ReadR}">
  70. <Setter Property="Grid.Column" Value="2" />
  71. <Setter Property="Grid.Row" Value="1" />
  72. </Style>
  73. <Style x:Key="Code" TargetType="Border">
  74. <Setter Property="Background" Value="#e0e0e0" />
  75. <Setter Property="BorderBrush" Value="#444" />
  76. <Setter Property="CornerRadius" Value="1" />
  77. <Setter Property="Margin" Value="5,0,5,0" />
  78. <Setter Property="BorderThickness" Value="1" />
  79. </Style>
  80. <Style TargetType="TextBox">
  81. <Setter Property="Background" Value="{x:Null}" />
  82. <Setter Property="Padding" Value="3,0,3,0" />
  83. <Setter Property="IsReadOnly" Value="True" />
  84. <Setter Property="BorderBrush" Value="{x:Null}" />
  85. </Style>
  86. <Style x:Key="verImgBdr" TargetType="Border">
  87. <Setter Property="HorizontalAlignment" Value="Center" />
  88. <Setter Property="BorderThickness" Value="4" />
  89. <Setter Property="VerticalAlignment" Value="Top" />
  90. <Setter Property="BorderBrush" Value="{DynamicResource ColorBrush3}" />
  91. <Setter Property="CornerRadius" Value="7" />
  92. <Setter Property="MaxHeight" Value="140" />
  93. </Style>
  94. <Style x:Key="verTxtBlk" TargetType="TextBlock">
  95. <Setter Property="HorizontalAlignment" Value="Center" />
  96. <Setter Property="TextAlignment" Value="Center" />
  97. <Setter Property="VerticalAlignment" Value="Center" />
  98. <Setter Property="Foreground" Value="{DynamicResource ColorBrush7}" />
  99. <Setter Property="Width" Value="180" />
  100. <Setter Property="TextWrapping" Value="Wrap" />
  101. <Setter Property="FontSize" Value="18" />
  102. </Style>
  103. <Style x:Key="imgTitle" TargetType="TextBlock">
  104. <Setter Property="FontSize" Value="14" />
  105. <Setter Property="Foreground" Value="#FF777777" />
  106. <Setter Property="HorizontalAlignment" Value="Center" />
  107. <Setter Property="Margin" Value="0,0,0,15" />
  108. </Style>
  109. <Style x:Key="verTxtBdr" TargetType="Border">
  110. <Setter Property="Margin" Value="0,-18,-1,10" />
  111. <Setter Property="Background" Value="{DynamicResource ColorBrush3}" />
  112. <Setter Property="Width" Value="190" />
  113. <Setter Property="Height" Value="32" />
  114. <Setter Property="CornerRadius" Value="6" />
  115. <Setter Property="BorderThickness" Value="0,0,0,1" />
  116. <Setter Property="BorderBrush" Value="{DynamicResource ColorBrush2}" />
  117. </Style>
  118. <!--h2-->
  119. <Style x:Key="h2" TargetType="TextBlock">
  120. <Setter Property="FontSize" Value="24" />
  121. <Setter Property="Padding" Value="15,5" />
  122. <Setter Property="Margin" Value="5,15,5,10" />
  123. <Setter Property="FontWeight" Value="Bold" />
  124. <Setter Property="Foreground" Value="{DynamicResource ColorBrush3}" />
  125. </Style>
  126. <!--h3-->
  127. <Style x:Key="h3" TargetType="TextBlock">
  128. <Setter Property="FontSize" Value="20" />
  129. <Setter Property="Padding" Value="30,0" />
  130. <Setter Property="Margin" Value="-10,0,10,17" />
  131. <Setter Property="FontWeight" Value="Bold" />
  132. <Setter Property="Foreground" Value="{DynamicResource ColorBrush4}" />
  133. </Style>
  134. <!--h4-->
  135. <Style x:Key="h4" TargetType="TextBlock">
  136. <Setter Property="FontSize" Value="16" />
  137. <Setter Property="Padding" Value="30,0" />
  138. <Setter Property="Margin" Value="5,0,10,10" />
  139. <Setter Property="FontWeight" Value="Bold" />
  140. <Setter Property="Foreground" Value="{DynamicResource ColorBrush4}" />
  141. </Style>
  142. <!--footnote-->
  143. <Style x:Key="footnote" TargetType="TextBlock">
  144. <Setter Property="FontSize" Value="14" />
  145. <Setter Property="Padding" Value="30,0" />
  146. <Setter Property="Margin" Value="0,20,0,15" />
  147. <Setter Property="Foreground" Value="#FF777777" />
  148. <Setter Property="TextWrapping" Value="Wrap" />
  149. </Style>
  150. <!--ButtonNameBorder-->
  151. <!--ImageButtonStyle-->
  152. <Style x:Key="ImgBtnImg" TargetType="Image">
  153. <Setter Property="MaxWidth" Value="70px" />
  154. <Setter Property="MaxHeight" Value="70px" />
  155. <Setter Property="Margin" Value="3" />
  156. </Style>
  157. <Style x:Key="ImgBtnBdr" TargetType="Border">
  158. <Setter Property="Background" Value="{DynamicResource ColorBrush7}" />
  159. <Setter Property="BorderBrush" Value="{DynamicResource ColorBrush3}" />
  160. <Setter Property="BorderThickness" Value="2px" />
  161. <Setter Property="CornerRadius" Value="5" />
  162. <Setter Property="Margin" Value="2px" />
  163. </Style>
  164. <Style x:Key="NameBdr" TargetType="Border">
  165. <Setter Property="Background" Value="{DynamicResource ColorBrush3}" />
  166. <Setter Property="BorderThickness" Value="0" />
  167. <Setter Property="CornerRadius" Value="5,5,0,0" />
  168. <Setter Property="Margin" Value="-2,-2,-2,2" />
  169. </Style>
  170. <Style x:Key="ImgBtnTxt" TargetType="TextBlock">
  171. <Setter Property="HorizontalAlignment" Value="Center" />
  172. <Setter Property="VerticalAlignment" Value="Center" />
  173. <Setter Property="Grid.Row" Value="0" />
  174. <Setter Property="Foreground" Value="{DynamicResource ColorBrush7}" />
  175. <Setter Property="FontSize" Value="12px" />
  176. <Setter Property="Margin" Value="8px,2px" />
  177. </Style>
  178. <!-- TEMPLATES -->
  179. <ControlTemplate x:Key="Separator" TargetType="ContentControl">
  180. <Grid Margin="0,0,0,15">
  181. <Grid.ColumnDefinitions>
  182. <ColumnDefinition Width="1*" />
  183. <ColumnDefinition Width="100" />
  184. <ColumnDefinition Width="1*" />
  185. </Grid.ColumnDefinitions>
  186. <Line X1="0" X2="100" Stroke="{DynamicResource ColorBrush4}" StrokeThickness="1.5" HorizontalAlignment="Center" Stretch="Fill" Grid.Column="0" />
  187. <TextBlock Text="{TemplateBinding Content}" HorizontalAlignment="Center" FontSize="14" Foreground="{DynamicResource ColorBrush4}" Grid.Column="1" VerticalAlignment="Center" />
  188. <Line X1="0" X2="100" Stroke="{DynamicResource ColorBrush4}" StrokeThickness="1.5" HorizontalAlignment="Center" Stretch="Fill" Grid.Column="2" />
  189. </Grid>
  190. </ControlTemplate>