Special_archive_page.xaml 24 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403
  1. <!-- <StackPanel xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="clr-namespace:PCL2" > -->
  2. <StackPanel Margin="0,-10,0,0" xmlns:sys ="clr-namespace:System;assembly=mscorlib">
  3. <!--Animations Starts-->
  4. <StackPanel.Triggers>
  5. </StackPanel.Triggers>
  6. <StackPanel.Resources>
  7. <!--Styles Starts-->
  8. <Style TargetType="FlowDocumentScrollViewer" >
  9. <Setter Property="IsSelectionEnabled" Value="False"/>
  10. <Setter Property="VerticalScrollBarVisibility" Value="Hidden"/>
  11. <Setter Property="Margin" Value="0"/>
  12. </Style><Style TargetType="FlowDocument" >
  13. <Setter Property="FontFamily" Value="Microsoft YaHei UI"/>
  14. <Setter Property="FontSize" Value="14"/>
  15. <Setter Property="TextAlignment" Value="Left"/>
  16. </Style><Style TargetType="StackPanel" x:Key="ContentStack" >
  17. <Setter Property="Margin" Value="20,40,20,20"/>
  18. </Style><Style TargetType="local:MyCard" x:Key="Card" >
  19. <Setter Property="Margin" Value="0,5"/>
  20. </Style><Style TargetType="TextBox" x:Key="InlineCode">
  21. <Setter Property="FontSize" Value="14" />
  22. <Setter Property="IsReadOnly" Value="True" />
  23. <Setter Property="Margin" Value="2,0,2,-4" />
  24. <Setter Property="FontFamily" Value="Consolas"/>
  25. <Setter Property="Height" Value="18"/>
  26. <Setter Property="Template">
  27. <Setter.Value>
  28. <ControlTemplate TargetType="TextBox">
  29. <Border Background="{DynamicResource ColorBrush6}" Opacity="0.9"
  30. BorderBrush="{DynamicResource ColorBrush4}" BorderThickness="0"
  31. CornerRadius="5" Padding="4,0.2">
  32. <ScrollViewer x:Name="PART_ContentHost" Focusable="false"
  33. HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Hidden" />
  34. </Border>
  35. <ControlTemplate.Triggers>
  36. </ControlTemplate.Triggers>
  37. </ControlTemplate>
  38. </Setter.Value>
  39. </Setter>
  40. </Style><Style TargetType="TextBlock" >
  41. <Setter Property="TextWrapping" Value="Wrap"/>
  42. <Setter Property="HorizontalAlignment" Value="Left"/>
  43. <Setter Property="FontSize" Value="14"/>
  44. <Setter Property="Foreground" Value="Black"/>
  45. </Style><Style TargetType="List" >
  46. <Setter Property="Foreground" Value="{DynamicResource ColorBrush3}"/>
  47. <Setter Property="Margin" Value="20,0,0,0"/>
  48. <Setter Property="MarkerStyle" Value="1"/>
  49. <Setter Property="Padding" Value="0"/>
  50. </Style><Style TargetType="ListItem" >
  51. <Setter Property="Foreground" Value="Black"/>
  52. <Setter Property="LineHeight" Value="22"/>
  53. </Style><Style TargetType="Paragraph" x:Key="H2" >
  54. <Setter Property="FontSize" Value="22"/>
  55. <Setter Property="Margin" Value="0,10,0,5"/>
  56. <Setter Property="FontWeight" Value="Bold"/>
  57. <Setter Property="Foreground" Value="{DynamicResource ColorBrush3}"/>
  58. </Style><Style TargetType="Paragraph" x:Key="H3" >
  59. <Setter Property="FontSize" Value="18"/>
  60. <Setter Property="Margin" Value="0,5,0,5"/>
  61. <Setter Property="FontWeight" Value="Bold"/>
  62. <Setter Property="Foreground" Value="{DynamicResource ColorBrush4}"/>
  63. </Style><Style TargetType="Paragraph" x:Key="H4" >
  64. <Setter Property="FontSize" Value="16"/>
  65. <Setter Property="Margin" Value="0,3,0,5"/>
  66. <Setter Property="FontWeight" Value="Bold"/>
  67. <Setter Property="Foreground" Value="{DynamicResource ColorBrush4}"/>
  68. </Style><Style TargetType="Border" x:Key="Quote" >
  69. <Setter Property="BorderThickness" Value="5,0,0,0"/>
  70. <Setter Property="BorderBrush" Value="{DynamicResource ColorBrush4}"/>
  71. <Setter Property="Padding" Value="10,5"/>
  72. <Setter Property="Margin" Value="0,5"/>
  73. </Style><sys:String x:Key="DownloadIcon">
  74. M802 664v146c0 7.7-6.3 14-14 14H236c-7.7
  75. 0-14-6.3-14-14V664c0-5.5-4.5-10-10-10h-50c-5.5
  76. 0-10 4.5-10 10v170c0 33.1 26.9 60 60 60h600c33.1
  77. 0 60-26.9 60-60V664c0-5.5-4.5-10-10-10h-50c-5.5
  78. 0-10 4.5-10 10z M547 163v449.5l173.6-173.6c13.7-13.7
  79. 35.8-13.7 49.5 0 13.7 13.7 13.7 35.8 0 49.5L536.8
  80. 721.7c-0.4 0.4-0.8 0.8-1.3 1.2-0.2 0.2-0.4 0.4-0.6
  81. 0.5-0.2 0.2-0.4 0.4-0.7 0.6-0.3 0.2-0.5 0.4-0.8 0.6-0.2
  82. 0.1-0.4 0.3-0.5 0.4l-0.9 0.6c-0.2 0.1-0.3 0.2-0.5 0.3-0.3
  83. 0.2-0.6 0.4-1 0.6-0.2 0.1-0.3 0.2-0.5 0.3-0.3 0.2-0.6
  84. 0.4-1 0.5-0.2 0.1-0.4 0.2-0.5 0.3-0.3 0.2-0.6 0.3-0.9
  85. 0.5l-0.6 0.3c-0.3 0.1-0.6 0.3-0.8 0.4-0.2 0.1-0.5 0.2-0.7
  86. 0.3-0.3 0.1-0.5 0.2-0.8 0.3l-0.9 0.3c-0.2 0.1-0.4 0.2-0.7
  87. 0.2-0.3 0.1-0.6 0.2-1 0.3-0.2 0.1-0.4 0.1-0.6 0.2-0.4 0.1-0.7
  88. 0.2-1.1 0.3-0.2 0-0.4 0.1-0.6 0.1-0.4 0.1-0.7 0.2-1.1 0.2-0.2
  89. 0-0.4 0.1-0.6 0.1-0.4 0.1-0.7 0.1-1.1 0.2-0.2 0-0.4 0.1-0.7
  90. 0.1-0.3 0-0.7 0.1-1 0.1-0.3 0-0.6 0-0.9 0.1-0.3 0-0.5 0-0.8
  91. 0.1-1.2 0.1-2.3 0.1-3.5 0-0.3 0-0.5 0-0.8-0.1-0.3 0-0.6
  92. 0-0.9-0.1-0.3 0-0.7-0.1-1-0.1-0.2 0-0.4-0.1-0.7-0.1-0.4-0.1-0.7-0.1-1.1-0.2-0.2
  93. 0-0.4-0.1-0.6-0.1-0.4-0.1-0.7-0.2-1.1-0.2-0.2
  94. 0-0.4-0.1-0.6-0.1-0.4-0.1-0.7-0.2-1.1-0.3-0.2-0.1-0.4-0.1-0.6-0.2-0.3-0.1-0.6-0.2-1-0.3-0.2-0.1-0.5-0.1-0.7-0.2l-0.9-0.3c-0.3-0.1-0.5-0.2-0.8-0.3-0.2-0.1-0.5-0.2-0.7-0.3-0.3-0.1-0.6-0.3-0.8-0.4l-0.6-0.3c-0.3-0.2-0.6-0.3-0.9-0.5-0.2-0.1-0.4-0.2-0.5-0.3-0.3-0.2-0.6-0.4-1-0.6-0.2-0.1-0.3-0.2-0.5-0.3-0.3-0.2-0.6-0.4-1-0.6-0.2-0.1-0.3-0.2-0.5-0.3-0.3-0.2-0.6-0.4-0.9-0.7-0.2-0.1-0.3-0.3-0.5-0.4-0.3-0.2-0.5-0.4-0.8-0.6-0.2-0.2-0.4-0.4-0.7-0.6-0.2-0.2-0.4-0.4-0.6-0.5l-1.2-1.2-233.1-233.1c-13.7-13.7-13.7-35.8 0-49.5 13.7-13.7
  95. 35.8-13.7 49.5 0L477 612.5V163c0-19.3 15.7-35 35-35s35 15.7 35 35z</sys:String>
  96. <sys:String x:Key="LaunchIcon">
  97. M512 97C282.8 97 97 282.8 97 512s185.8 415 415 415 415-185.8
  98. 415-415S741.2 97 512 97z m-1 759c-190.5 0-345-154.5-345-345s154.5-345
  99. 345-345 345 154.5 345 345-154.5 345-345 345z M442.1 408.2L621.9 512
  100. 442.1 615.8V408.2m-59.9-113.9c-5.2 0-10 4.2-10 10v415.4c0 5.8 4.8 10
  101. 10 10 1.7 0 3.4-0.4 5-1.4l359.7-207.7c6.7-3.8 6.7-13.5 0-17.3L387.1
  102. 295.7c-1.6-1-3.3-1.4-4.9-1.4z</sys:String>
  103. <sys:String x:Key="CloudIcon">
  104. M480 224c43 0 84.7 11.6 120.6 33.5 34.6 21.1 62.5 50.9 80.6 86 10.4
  105. 20.1 30.6 33.3 53.2 34.6C796 381.6 853 407 895.2 449.7c41.7 42.1 64.6
  106. 97.2 64.6 155 0 30.8-5.9 60.6-17.7 88.7-11.3 27.1-27.5 51.4-48.2 72.3-42.3
  107. 42.8-98.4 66.3-158 66.3h-478c-53.3-3.1-102.6-24-139-58.8-35.3-33.6-54.7-77.2-54.7-122.5
  108. 0-38.5 13.7-75.3 39.7-106.4 12.9-15.5 28.5-29.1 46.3-40.3 18.3-11.6
  109. 38.4-20.4 59.9-26.3 26.1-7.1 44.9-29.9 47-56.9 4-52.9 28.6-102.1
  110. 69.4-138.7C368.1 244.6 422.6 224 480 224m0-64c-139.2 0-255.2 94.9-281.9
  111. 220.8-4.4 20.8-18.5 38.3-38.2 46.3C65.8 465.6 0.2 551.2 0.2 650.7 0.2 781.3
  112. 113.4 888.6 256.1 896H736c158.9 0 287.9-130.5 287.9-291.3
  113. 0-145.4-111.1-265.5-256.2-287.4-18.1-2.7-34.1-13-44.2-28.2C672.5
  114. 211.6 582.7 160 480 160z</sys:String><Style x:Key="ListItem" TargetType="TextBlock">
  115. <Setter Property="Margin" Value="10,-13.5,5,15" />
  116. <Setter Property="TextWrapping" Value="Wrap" />
  117. <Setter Property="HorizontalAlignment" Value="Left" />
  118. <Setter Property="FontSize" Value="14" />
  119. <Setter Property="Foreground" Value="Black" />
  120. </Style>
  121. <Style x:Key="ListItemLink" TargetType="local:MyTextButton">
  122. <Setter Property="Margin" Value="15,-15,5,15" />
  123. <Setter Property="TextElement.FontSize" Value="20" />
  124. </Style>
  125. <Style x:Key="ListStyle" TargetType="StackPanel">
  126. <Setter Property="Margin" Value="22,0,14,5" />
  127. </Style>
  128. <Style TargetType="TextBox">
  129. <Setter Property="Background" Value="{x:Null}" />
  130. <Setter Property="Padding" Value="3,0,3,0" />
  131. <Setter Property="IsReadOnly" Value="True" />
  132. <Setter Property="BorderBrush" Value="{x:Null}" />
  133. </Style>
  134. <Style x:Key="imgTitle" TargetType="TextBlock">
  135. <Setter Property="FontSize" Value="14" />
  136. <Setter Property="Foreground" Value="#FF777777" />
  137. <Setter Property="HorizontalAlignment" Value="Center" />
  138. <Setter Property="Margin" Value="0,0,0,15" />
  139. </Style>
  140. <!--footnote-->
  141. <Style x:Key="footnote" TargetType="TextBlock">
  142. <Setter Property="FontSize" Value="14" />
  143. <Setter Property="Padding" Value="30,0" />
  144. <Setter Property="Margin" Value="0,20,0,15" />
  145. <Setter Property="Foreground" Value="#FF777777" />
  146. <Setter Property="TextWrapping" Value="Wrap" />
  147. </Style>
  148. <!--ButtonNameBorder-->
  149. <!--ImageButtonStyle-->
  150. <Style x:Key="ImgBtnImg" TargetType="Image">
  151. <Setter Property="MaxWidth" Value="70px" />
  152. <Setter Property="MaxHeight" Value="70px" />
  153. <Setter Property="Margin" Value="3" />
  154. </Style>
  155. <Style x:Key="ImgBtnBdr" TargetType="Border">
  156. <Setter Property="Background" Value="{DynamicResource ColorBrush7}" />
  157. <Setter Property="BorderBrush" Value="{DynamicResource ColorBrush3}" />
  158. <Setter Property="BorderThickness" Value="2px" />
  159. <Setter Property="CornerRadius" Value="5" />
  160. <Setter Property="Margin" Value="2px" />
  161. </Style>
  162. <Style x:Key="NameBdr" TargetType="Border">
  163. <Setter Property="Background" Value="{DynamicResource ColorBrush3}" />
  164. <Setter Property="BorderThickness" Value="0" />
  165. <Setter Property="CornerRadius" Value="5,5,0,0" />
  166. <Setter Property="Margin" Value="-2,-2,-2,2" />
  167. </Style>
  168. <Style x:Key="ImgBtnTxt" TargetType="TextBlock">
  169. <Setter Property="HorizontalAlignment" Value="Center" />
  170. <Setter Property="VerticalAlignment" Value="Center" />
  171. <Setter Property="Grid.Row" Value="0" />
  172. <Setter Property="Foreground" Value="{DynamicResource ColorBrush7}" />
  173. <Setter Property="FontSize" Value="12px" />
  174. <Setter Property="Margin" Value="8px,2px" />
  175. </Style>
  176. <ControlTemplate x:Key="Separator" TargetType="ContentControl">
  177. <Grid Margin="0,10">
  178. <Grid.ColumnDefinitions>
  179. <ColumnDefinition Width="1*" />
  180. <ColumnDefinition Width="100" />
  181. <ColumnDefinition Width="1*" />
  182. </Grid.ColumnDefinitions>
  183. <Line X1="0" X2="100" Stroke="{DynamicResource ColorBrush4}" StrokeThickness="1.5" HorizontalAlignment="Center" Stretch="Fill" Grid.Column="0" />
  184. <TextBlock Text="{TemplateBinding Content}" HorizontalAlignment="Center" FontSize="15" Foreground="{DynamicResource ColorBrush4}" Grid.Column="1" VerticalAlignment="Center" />
  185. <Line X1="0" X2="100" Stroke="{DynamicResource ColorBrush4}" StrokeThickness="1.5" HorizontalAlignment="Center" Stretch="Fill" Grid.Column="2" />
  186. </Grid>
  187. </ControlTemplate><Style TargetType="local:MyIconTextButton" x:Key="DownloadVersionButton" >
  188. <Setter Property="Text" Value="下载"/>
  189. <Setter Property="ToolTip" Value="转到下载页面"/>
  190. <Setter Property="EventType" Value="切换页面"/>
  191. <Setter Property="EventData" Value="1|1"/>
  192. </Style><Style TargetType="local:MyIconTextButton" x:Key="ServerJarDownloadButton" >
  193. <Setter Property="Text" Value="服务端"/>
  194. <Setter Property="ToolTip" Value="下载服务端"/>
  195. <Setter Property="EventType" Value="下载文件"/>
  196. </Style><Style TargetType="local:MyButton" x:Key="LinkButtonBase" >
  197. <Setter Property="Margin" Value="0,0,5,5"/>
  198. <Setter Property="Height" Value="35"/>
  199. <Setter Property="Padding" Value="13,0"/>
  200. <Setter Property="EventType" Value="打开网页"/>
  201. </Style><Style TargetType="local:MyButton" x:Key="WikiLinkButton" BasedOn="{StaticResource LinkButtonBase}">
  202. <Setter Property="Grid.Column" Value="0"/>
  203. <Setter Property="Text" Value="Minecraft Wiki"/>
  204. </Style><Style TargetType="local:MyButton" x:Key="OfficalLinkButton" BasedOn="{StaticResource LinkButtonBase}">
  205. <Setter Property="Grid.Column" Value="2"/>
  206. <Setter Property="Text" Value="官网"/>
  207. </Style><Style TargetType="Border" x:Key="VersionImageBorder" >
  208. <Setter Property="HorizontalAlignment" Value="Center"/>
  209. <Setter Property="BorderThickness" Value="4"/>
  210. <Setter Property="VerticalAlignment" Value="Top"/>
  211. <Setter Property="BorderBrush" Value="{DynamicResource ColorBrush3}"/>
  212. <Setter Property="CornerRadius" Value="7"/>
  213. <Setter Property="MaxHeight" Value="150"/>
  214. </Style><Style TargetType="Border" x:Key="VersionTitleBorder" >
  215. <Setter Property="Margin" Value="0,-20,-1,10"/>
  216. <Setter Property="Background" Value="{DynamicResource ColorBrush3}"/>
  217. <Setter Property="Width" Value="190"/>
  218. <Setter Property="Height" Value="36"/>
  219. <Setter Property="CornerRadius" Value="7"/>
  220. <Setter Property="BorderThickness" Value="0,0,0,2"/>
  221. <Setter Property="BorderBrush" Value="{DynamicResource ColorBrush2}"/>
  222. </Style><Style TargetType="TextBlock" x:Key="VersionTitleBlock" >
  223. <Setter Property="HorizontalAlignment" Value="Center"/>
  224. <Setter Property="TextAlignment" Value="Center"/>
  225. <Setter Property="VerticalAlignment" Value="Center"/>
  226. <Setter Property="Foreground" Value="{DynamicResource ColorBrush7}"/>
  227. <Setter Property="Width" Value="180"/>
  228. <Setter Property="TextWrapping" Value="Wrap"/>
  229. <Setter Property="FontSize" Value="20"/>
  230. </Style>
  231. </StackPanel.Resources>
  232. <Border Margin="0,0,0,5" Padding="2,8" BorderThickness="1" Background="{DynamicResource ColorBrush5}" CornerRadius="5" VerticalAlignment="Top" BorderBrush="{DynamicResource ColorBrush3}" Opacity="0.7">
  233. <Grid Margin="10,0,0,0">
  234. <TextBlock x:Name="NewsHint" FontWeight="Bold" FontSize="12" VerticalAlignment="Center" Foreground="#FF000000">
  235. 📰 新闻主页由 Light Beacon (最亮的信标)制作与维护。
  236. </TextBlock>
  237. <TextBlock x:Name="Hint2" FontWeight="Bold" FontSize="12" VerticalAlignment="Center" Foreground="#00000000">
  238. 📰 MCBBS 寄了,新闻主页将永久停用 MCBBS 链接
  239. </TextBlock>
  240. </Grid>
  241. </Border><ContentControl Content="整 的 花 活" Template="{StaticResource Separator}"/><local:MyCard Margin="0,0,0,15" Title="去年的烂活 - 新闻主页祝您新年快乐(已摆烂)" CanSwap="True" IsSwaped="True">
  242. <StackPanel Margin="30,120,30,40" MaxWidth="500" Height="150" x:Name="SP">
  243. <StackPanel.Resources>
  244. <Style TargetType="TextBlock">
  245. <Setter Property="HorizontalAlignment" Value="Center" />
  246. <Setter Property="VerticalAlignment" Value="Center" />
  247. <Setter Property="FontSize" Value="56" />
  248. <Setter Property="Foreground" Value="#EF321B" />
  249. <Setter Property="FontWeight" Value="Bold"/>
  250. </Style>
  251. </StackPanel.Resources>
  252. <StackPanel.Triggers>
  253. <EventTrigger RoutedEvent="StackPanel.Loaded">
  254. <BeginStoryboard>
  255. <Storyboard RepeatBehavior="Forever" FillBehavior="Stop">
  256. <DoubleAnimation Storyboard.TargetName="T1" Storyboard.TargetProperty="Opacity" From="1" To="0" Duration="0:0:0.0001"/>
  257. <DoubleAnimation Storyboard.TargetName="T2" Storyboard.TargetProperty="Opacity" From="1" To="0" Duration="0:0:0.0001"/>
  258. <DoubleAnimation Storyboard.TargetName="T3" Storyboard.TargetProperty="Opacity" From="1" To="0" Duration="0:0:0.0001"/>
  259. <DoubleAnimation Storyboard.TargetName="FuImg" Storyboard.TargetProperty="Opacity" From="0" To="1" Duration="0:0:0.1" BeginTime="0:0:0.5"/>
  260. <DoubleAnimation Storyboard.TargetName="FuImg1" Storyboard.TargetProperty="Opacity" From="0" To="1" Duration="0:0:0.1" BeginTime="0:0:1.3"/>
  261. <DoubleAnimation Storyboard.TargetName="FuImg2" Storyboard.TargetProperty="Opacity" From="0" To="1" Duration="0:0:0.1" BeginTime="0:0:2.1"/>
  262. <DoubleAnimation Storyboard.TargetName="FuImg1" Storyboard.TargetProperty="Opacity" From="1" To="0" Duration="0:0:0.05" BeginTime="0:0:2.8"/>
  263. <DoubleAnimation Storyboard.TargetName="FuImg2" Storyboard.TargetProperty="Opacity" From="1" To="0" Duration="0:0:0.05" BeginTime="0:0:2.8"/>
  264. <DoubleAnimation Storyboard.TargetName="Fu1S" Storyboard.TargetProperty="ScaleX" From="1" To="2.2" Duration="0:0:0.05" BeginTime="0:0:3"/>
  265. <DoubleAnimation Storyboard.TargetName="FuS" Storyboard.TargetProperty="ScaleX" From="1" To="2.2" Duration="0:0:0.05" BeginTime="0:0:3"/>
  266. <DoubleAnimation Storyboard.TargetName="Fu2S" Storyboard.TargetProperty="ScaleX" From="1" To="2.2" Duration="0:0:0.05" BeginTime="0:0:3"/>
  267. <DoubleAnimation Storyboard.TargetName="Fu1S" Storyboard.TargetProperty="ScaleY" From="1" To="2.2" Duration="0:0:0.05" BeginTime="0:0:3"/>
  268. <DoubleAnimation Storyboard.TargetName="FuS" Storyboard.TargetProperty="ScaleY" From="1" To="2.2" Duration="0:0:0.05" BeginTime="0:0:3"/>
  269. <DoubleAnimation Storyboard.TargetName="Fu2S" Storyboard.TargetProperty="ScaleY" From="1" To="2.2" Duration="0:0:0.05" BeginTime="0:0:3"/>
  270. <DoubleAnimation Storyboard.TargetName="FuImg1" Storyboard.TargetProperty="Opacity" From="0" To="1" Duration="0:0:0.05" BeginTime="0:0:3.4"/>
  271. <DoubleAnimation Storyboard.TargetName="FuImg2" Storyboard.TargetProperty="Opacity" From="0" To="1" Duration="0:0:0.05" BeginTime="0:0:3.4"/>
  272. <DoubleAnimation Storyboard.TargetName="FuImg" Storyboard.TargetProperty="Opacity" From="1" To="0" Duration="0:0:0.05" BeginTime="0:0:3.4"/>
  273. <DoubleAnimation Storyboard.TargetName="FuImg1" Storyboard.TargetProperty="Opacity" From="1" To="0" Duration="0:0:0.05" BeginTime="0:0:3.8"/>
  274. <DoubleAnimation Storyboard.TargetName="FuImg2" Storyboard.TargetProperty="Opacity" From="1" To="0" Duration="0:0:0.05" BeginTime="0:0:3.8"/>
  275. <DoubleAnimation Storyboard.TargetName="FuImg" Storyboard.TargetProperty="Opacity" From="0" To="1" Duration="0:0:0.05" BeginTime="0:0:3.8"/>
  276. <DoubleAnimation Storyboard.TargetName="FuAngle" Storyboard.TargetProperty="Angle" From="45" To="225" Duration="0:0:0.001" BeginTime="0:0:4.2"/>
  277. <DoubleAnimation Storyboard.TargetName="FuAngle" Storyboard.TargetProperty="Angle" From="45" To="8400" Duration="0:0:6" BeginTime="0:0:4.8"/>
  278. <DoubleAnimation Storyboard.TargetName="Fu1Angle" Storyboard.TargetProperty="Angle" From="45" To="8400" Duration="0:0:6" BeginTime="0:0:4.8"/>
  279. <DoubleAnimation Storyboard.TargetName="Fu2Angle" Storyboard.TargetProperty="Angle" From="45" To="8800" Duration="0:0:6" BeginTime="0:0:4.8"/>
  280. <DoubleAnimation Storyboard.TargetName="FuImg1" Storyboard.TargetProperty="Opacity" From="0" To="1" Duration="0:0:0.05" BeginTime="0:0:6"/>
  281. <DoubleAnimation Storyboard.TargetName="FuImg2" Storyboard.TargetProperty="Opacity" From="0" To="1" Duration="0:0:0.05" BeginTime="0:0:6"/>
  282. <DoubleAnimation Storyboard.TargetName="FuImg" Storyboard.TargetProperty="Opacity" From="1" To="0" Duration="0:0:0.05" BeginTime="0:0:6"/>
  283. <DoubleAnimation Storyboard.TargetName="FuImg1" Storyboard.TargetProperty="Opacity" From="1" To="0" Duration="0:0:0.05" BeginTime="0:0:7.6"/>
  284. <DoubleAnimation Storyboard.TargetName="FuImg2" Storyboard.TargetProperty="Opacity" From="1" To="0" Duration="0:0:0.05" BeginTime="0:0:7.6"/>
  285. <DoubleAnimation Storyboard.TargetName="T1" Storyboard.TargetProperty="Opacity" From="0" To="1" Duration="0:0:0.001" BeginTime="0:0:7.6"/>
  286. <DoubleAnimation Storyboard.TargetName="T2" Storyboard.TargetProperty="Opacity" From="0" To="1" Duration="0:0:0.001" BeginTime="0:0:8"/>
  287. <DoubleAnimation Storyboard.TargetName="T3" Storyboard.TargetProperty="Opacity" From="0" To="1" Duration="0:0:0.001" BeginTime="0:0:8.4"/>
  288. </Storyboard>
  289. </BeginStoryboard>
  290. </EventTrigger>
  291. </StackPanel.Triggers>
  292. <Grid>
  293. <Grid.ColumnDefinitions>
  294. <ColumnDefinition />
  295. <ColumnDefinition />
  296. <ColumnDefinition />
  297. </Grid.ColumnDefinitions>
  298. <Image Source="https://image.stapxs.cn/i/2024/02/09/fu.png" MaxHeight="80" RenderTransformOrigin="0.5,0.5" Grid.Column="0" x:Name="FuImg1" Opacity="0" HorizontalAlignment="Right">
  299. <Image.RenderTransform>
  300. <TransformGroup>
  301. <ScaleTransform x:Name="Fu1S"/>
  302. <SkewTransform/>
  303. <RotateTransform Angle="45" x:Name="Fu1Angle"/>
  304. <TranslateTransform/>
  305. </TransformGroup>
  306. </Image.RenderTransform>
  307. </Image>
  308. <TextBlock Text="过" Grid.Column="0" x:Name="T1"/>
  309. <Image Source="https://image.stapxs.cn/i/2024/02/09/fu.png" MaxHeight="80" RenderTransformOrigin="0.5,0.5" Grid.Column="1" x:Name="FuImg" Opacity="0">
  310. <Image.RenderTransform>
  311. <TransformGroup>
  312. <ScaleTransform x:Name="FuS"/>
  313. <SkewTransform/>
  314. <RotateTransform Angle="45" x:Name="FuAngle"/>
  315. <TranslateTransform x:Name="FuPos"/>
  316. </TransformGroup>
  317. </Image.RenderTransform>
  318. </Image>
  319. <TextBlock Text="年" Grid.Column="1" x:Name="T2"/>
  320. <Image Source="https://image.stapxs.cn/i/2024/02/09/fu.png" MaxHeight="80" RenderTransformOrigin="0.5,0.5" Grid.Column="2" x:Name="FuImg2" Opacity="0" HorizontalAlignment="Left">
  321. <Image.RenderTransform>
  322. <TransformGroup>
  323. <ScaleTransform x:Name="Fu2S"/>
  324. <SkewTransform/>
  325. <RotateTransform Angle="45" x:Name="Fu2Angle"/>
  326. <TranslateTransform/>
  327. </TransformGroup>
  328. </Image.RenderTransform>
  329. </Image>
  330. <TextBlock Text="啦" Grid.Column="2" x:Name="T3"/>
  331. </Grid>
  332. </StackPanel>
  333. </local:MyCard><local:MyCard Title="更多页面..." Margin="0,5">
  334. <StackPanel Margin="25,40,23,15">
  335. <Grid>
  336. <Grid.ColumnDefinitions>
  337. <ColumnDefinition Width="1*"/>
  338. <ColumnDefinition Width="100"/>
  339. </Grid.ColumnDefinitions>
  340. <local:MyComboBox x:Name="jumpbox" Height="30" SelectedIndex="0">
  341. <local:MyComboBoxItem Content="1.21存档"/>
  342. <local:MyComboBoxItem Content="1.20存档"/>
  343. <local:MyComboBoxItem Content="1.19存档"/>
  344. <local:MyComboBoxItem Content="1.18存档"/>
  345. <local:MyComboBoxItem Content="1.17存档"/>
  346. <local:MyComboBoxItem Content="愚人节版本存档"/>
  347. <local:MyComboBoxItem Content="输入..."/>
  348. </local:MyComboBox>
  349. <local:MyButton HorizontalAlignment="Center" Width="80"
  350. Grid.Column="1" Text="打开→" EventType="打开帮助"
  351. EventData="{Binding Path=Text,ElementName=jumpbox,StringFormat=https://news.bugjump.net/{0}.json}"/>
  352. </Grid>
  353. </StackPanel>
  354. </local:MyCard><Grid Margin="20,10" Height="35">
  355. <Grid.ColumnDefinitions>
  356. <ColumnDefinition Width="3*">
  357. </ColumnDefinition>
  358. <ColumnDefinition Width="2*">
  359. </ColumnDefinition>
  360. <ColumnDefinition Width="1*">
  361. </ColumnDefinition>
  362. </Grid.ColumnDefinitions>
  363. <local:MyButton Grid.Column="0" Padding="10,0" Text="刷新" EventType="刷新主页" Margin="3,0" ToolTip="点击刷新新闻主页" />
  364. <local:MyButton Grid.Column="2" Padding="10,0" Text="反馈" EventType="打开网页" Margin="3,0" EventData="https://github.com/Light-Beacon/PCL2-NewsHomepage/issues/new" ToolTip="点击前往 GitHub 提交反馈" />
  365. <local:MyButton Grid.Column="1" Padding="10,0" Text="❤️ 赞助主页" EventType="打开网页" Margin="3,0" EventData="https://afdian.net/a/Nattiden" ToolTip="点击前往 新闻主页爱发电" ColorType="Red" />
  366. </Grid><Border Background="#A0FFFFFF" Height="20720" Margin="-25,10,-25,-20500" BorderThickness="0,2,0,0" BorderBrush="#AAAAAAAA">
  367. <StackPanel Margin="40,15,0,10">
  368. <TextBlock Text="PCL2 新闻主页" FontSize="16" Margin="0,5,5,5" />
  369. <TextBlock>
  370. By:最亮的信标(Light Beacon)<LineBreak/>
  371. 主要维护:最亮的信标(Light Beacon)<LineBreak/>
  372. <LineBreak/>
  373. 订阅地址: 请通过 设置 - 主页 - 预设 - 新闻主页 订阅<LineBreak/>
  374. 爱发电赞助: <Underline><local:MyTextButton Margin="0,0,0,-3" EventType="打开网页" Text="https://afdian.net/a/Nattiden"
  375. EventData="https://afdian.net/a/Nattiden" ToolTip="点击打开爱发电" /></Underline> <LineBreak/>
  376. GitHub: <Underline><local:MyTextButton Margin="0,0,0,-3" EventType="打开网页" Text="https://github.com/Light-Beacon/PCL2-NewsHomepage"
  377. EventData="https://github.com/Light-Beacon/PCL2-NewsHomepage" ToolTip="点击打开GitHub" /></Underline> <LineBreak/>
  378. <LineBreak/>
  379. 无特殊声明本主页采用 <Underline><local:MyTextButton Margin="0,0,0,-2" Text="CC BY-NC-SA 4.0" EventType="打开网页"
  380. EventData="https://creativecommons.org/licenses/by-nc-sa/4.0/ "/></Underline> 授权。
  381. <LineBreak/>
  382. </TextBlock>
  383. <Border Height="20500" Background="{DynamicResource ColorBrush7}" Opacity="0.3" Margin="-40,10,0,0">
  384. <StackPanel>
  385. <Grid Margin="0,7,0,15">
  386. <Grid.ColumnDefinitions>
  387. <ColumnDefinition Width="1*">
  388. </ColumnDefinition>
  389. <ColumnDefinition Width="100">
  390. </ColumnDefinition>
  391. <ColumnDefinition Width="1*">
  392. </ColumnDefinition>
  393. </Grid.ColumnDefinitions>
  394. <Line X1="0" X2="100" Stroke="{DynamicResource ColorBrush3}" StrokeThickness="1.5" HorizontalAlignment="Center" Stretch="Fill" Grid.Column="0" />
  395. <TextBlock Text="到 底 啦" HorizontalAlignment="Center" FontSize="14" Foreground="{DynamicResource ColorBrush4}" Grid.Column="1" VerticalAlignment="Center" />
  396. <Line X1="0" X2="100" Stroke="{DynamicResource ColorBrush3}" StrokeThickness="1.5" HorizontalAlignment="Center" Stretch="Fill" Grid.Column="2" />
  397. </Grid>
  398. </StackPanel>
  399. </Border>
  400. </StackPanel>
  401. </Border>
  402. </StackPanel>