Style.xaml 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. <Style x:Key="ListItem" TargetType="TextBlock">
  2. <Setter Property="Margin" Value="10,-13.5,5,15" />
  3. <Setter Property="TextWrapping" Value="Wrap" />
  4. <Setter Property="HorizontalAlignment" Value="Left" />
  5. <Setter Property="FontSize" Value="14" />
  6. <Setter Property="Foreground" Value="Black" />
  7. </Style>
  8. <Style x:Key="ListItemLink" TargetType="local:MyTextButton">
  9. <Setter Property="Margin" Value="15,-15,5,15" />
  10. <Setter Property="TextElement.FontSize" Value="20" />
  11. </Style>
  12. <Style x:Key="ListStyle" TargetType="StackPanel">
  13. <Setter Property="Margin" Value="22,0,14,5" />
  14. </Style>
  15. <Style x:Key="Read" TargetType="local:MyButton">
  16. <Setter Property="Margin" Value="0,0,5,5" />
  17. <Setter Property="Height" Value="35" />
  18. <Setter Property="Padding" Value="13,0,13,0" />
  19. <Setter Property="EventType" Value="打开网页" />
  20. </Style>
  21. <Style x:Key="Read0" TargetType="local:MyButton" BasedOn="{StaticResource Read}">
  22. <Setter Property="Grid.Column" Value="0" />
  23. <Setter Property="Text" Value="Minecraft Wiki" />
  24. <!--<Setter Property="ColorType" Value="Highlight"/>-->
  25. </Style>
  26. <Style x:Key="Read0+" TargetType="local:MyButton" BasedOn="{StaticResource Read0}">
  27. <Setter Property="Grid.Row" Value="0" />
  28. <Setter Property="Grid.ColumnSpan" Value="3" />
  29. </Style>
  30. <Style x:Key="Read1" TargetType="local:MyButton" BasedOn="{StaticResource Read}">
  31. <Setter Property="Grid.Column" Value="1" />
  32. <Setter Property="Text" Value="MCBBS" />
  33. </Style>
  34. <Style x:Key="Read1+" TargetType="local:MyButton" BasedOn="{StaticResource Read1}">
  35. <Setter Property="Grid.Column" Value="0" />
  36. <Setter Property="Grid.Row" Value="1" />
  37. </Style>
  38. <Style x:Key="Read2" TargetType="local:MyButton" BasedOn="{StaticResource Read}">
  39. <Setter Property="Grid.Column" Value="2" />
  40. <Setter Property="Text" Value="官网" />
  41. </Style>
  42. <Style x:Key="Read2+" TargetType="local:MyButton" BasedOn="{StaticResource Read2}">
  43. <Setter Property="Grid.Column" Value="1" />
  44. <Setter Property="Grid.Row" Value="1" />
  45. </Style>
  46. <Style x:Key="ReadR" TargetType="local:MyButton" BasedOn="{StaticResource Read}">
  47. <Setter Property="Grid.Column" Value="3" />
  48. <Setter Property="Text" Value="Reddit" />
  49. </Style>
  50. <Style x:Key="ReadR+" TargetType="local:MyButton" BasedOn="{StaticResource ReadR}">
  51. <Setter Property="Grid.Column" Value="2" />
  52. <Setter Property="Grid.Row" Value="1" />
  53. </Style>
  54. <Style x:Key="Code" TargetType="Border">
  55. <Setter Property="Background" Value="#e0e0e0" />
  56. <Setter Property="BorderBrush" Value="#444" />
  57. <Setter Property="CornerRadius" Value="1" />
  58. <Setter Property="Margin" Value="5,0,5,0" />
  59. <Setter Property="BorderThickness" Value="1" />
  60. </Style>
  61. <Style TargetType="TextBox">
  62. <Setter Property="Background" Value="{x:Null}" />
  63. <Setter Property="Padding" Value="3,0,3,0" />
  64. <Setter Property="IsReadOnly" Value="True" />
  65. <Setter Property="BorderBrush" Value="{x:Null}" />
  66. </Style>
  67. <Style x:Key="verImgBdr" TargetType="Border">
  68. <Setter Property="HorizontalAlignment" Value="Center" />
  69. <Setter Property="BorderThickness" Value="4" />
  70. <Setter Property="VerticalAlignment" Value="Top" />
  71. <Setter Property="BorderBrush" Value="{DynamicResource ColorBrush3}" />
  72. <Setter Property="CornerRadius" Value="7" />
  73. <Setter Property="MaxHeight" Value="200" />
  74. </Style>
  75. <Style x:Key="verTxtBlk" TargetType="TextBlock">
  76. <Setter Property="HorizontalAlignment" Value="Center" />
  77. <Setter Property="TextAlignment" Value="Center" />
  78. <Setter Property="VerticalAlignment" Value="Center" />
  79. <Setter Property="Foreground" Value="{DynamicResource ColorBrush7}" />
  80. <Setter Property="Width" Value="180" />
  81. <Setter Property="TextWrapping" Value="Wrap" />
  82. <Setter Property="FontSize" Value="20" />
  83. </Style>
  84. <Style x:Key="imgTitle" TargetType="TextBlock">
  85. <Setter Property="FontSize" Value="14" />
  86. <Setter Property="Foreground" Value="#FF777777" />
  87. <Setter Property="HorizontalAlignment" Value="Center" />
  88. <Setter Property="Margin" Value="0,0,0,15" />
  89. </Style>
  90. <Style x:Key="verTxtBdr" TargetType="Border">
  91. <Setter Property="Margin" Value="0,-20,-1,10" />
  92. <Setter Property="Background" Value="{DynamicResource ColorBrush3}" />
  93. <Setter Property="Width" Value="190" />
  94. <Setter Property="Height" Value="36" />
  95. <Setter Property="CornerRadius" Value="2" />
  96. <Setter Property="BorderThickness" Value="0,0,0,3" />
  97. <Setter Property="BorderBrush" Value="{DynamicResource ColorBrush2}" />
  98. </Style>
  99. <!--footnote-->
  100. <Style x:Key="footnote" TargetType="TextBlock">
  101. <Setter Property="FontSize" Value="14" />
  102. <Setter Property="Padding" Value="30,0" />
  103. <Setter Property="Margin" Value="0,20,0,15" />
  104. <Setter Property="Foreground" Value="#FF777777" />
  105. <Setter Property="TextWrapping" Value="Wrap" />
  106. </Style>
  107. <!--ButtonNameBorder-->
  108. <!--ImageButtonStyle-->
  109. <Style x:Key="ImgBtnImg" TargetType="Image">
  110. <Setter Property="MaxWidth" Value="70px" />
  111. <Setter Property="MaxHeight" Value="70px" />
  112. <Setter Property="Margin" Value="3" />
  113. </Style>
  114. <Style x:Key="ImgBtnBdr" TargetType="Border">
  115. <Setter Property="Background" Value="{DynamicResource ColorBrush7}" />
  116. <Setter Property="BorderBrush" Value="{DynamicResource ColorBrush3}" />
  117. <Setter Property="BorderThickness" Value="2px" />
  118. <Setter Property="CornerRadius" Value="5" />
  119. <Setter Property="Margin" Value="2px" />
  120. </Style>
  121. <Style x:Key="NameBdr" TargetType="Border">
  122. <Setter Property="Background" Value="{DynamicResource ColorBrush3}" />
  123. <Setter Property="BorderThickness" Value="0" />
  124. <Setter Property="CornerRadius" Value="5,5,0,0" />
  125. <Setter Property="Margin" Value="-2,-2,-2,2" />
  126. </Style>
  127. <Style x:Key="ImgBtnTxt" TargetType="TextBlock">
  128. <Setter Property="HorizontalAlignment" Value="Center" />
  129. <Setter Property="VerticalAlignment" Value="Center" />
  130. <Setter Property="Grid.Row" Value="0" />
  131. <Setter Property="Foreground" Value="{DynamicResource ColorBrush7}" />
  132. <Setter Property="FontSize" Value="12px" />
  133. <Setter Property="Margin" Value="8px,2px" />
  134. </Style>