星火直播PC
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

LoadDialog.xaml 11KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238
  1. <Window x:Class="XHZB.Desktop.LoadDialog"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:XHZB.Desktop"
  7. Width="100"
  8. Height="100"
  9. AllowsTransparency="True"
  10. Background="Transparent"
  11. Opacity="1"
  12. ResizeMode="NoResize"
  13. Topmost="True"
  14. WindowStartupLocation="CenterScreen"
  15. WindowStyle="None">
  16. <Grid>
  17. <Border Background="#66000000" CornerRadius="10 10 10 10">
  18. <Grid Width="60" Height="60">
  19. <Grid.Resources>
  20. <DrawingBrush
  21. x:Key="brush"
  22. AlignmentX="Center"
  23. AlignmentY="Top"
  24. Stretch="None">
  25. <DrawingBrush.Drawing>
  26. <GeometryDrawing Brush="White">
  27. <GeometryDrawing.Geometry>
  28. <EllipseGeometry RadiusX="2" RadiusY="5" />
  29. </GeometryDrawing.Geometry>
  30. </GeometryDrawing>
  31. </DrawingBrush.Drawing>
  32. </DrawingBrush>
  33. </Grid.Resources>
  34. <Rectangle
  35. x:Name="r01"
  36. Fill="{StaticResource brush}"
  37. Opacity="0.8"
  38. RenderTransformOrigin="0.5,0.5">
  39. <Rectangle.RenderTransform>
  40. <RotateTransform Angle="0" />
  41. </Rectangle.RenderTransform>
  42. </Rectangle>
  43. <Rectangle
  44. x:Name="r02"
  45. Fill="{StaticResource brush}"
  46. Opacity="0.8"
  47. RenderTransformOrigin="0.5,0.5">
  48. <Rectangle.RenderTransform>
  49. <RotateTransform Angle="30" />
  50. </Rectangle.RenderTransform>
  51. </Rectangle>
  52. <Rectangle
  53. x:Name="r03"
  54. Fill="{StaticResource brush}"
  55. Opacity="0.8"
  56. RenderTransformOrigin="0.5,0.5">
  57. <Rectangle.RenderTransform>
  58. <RotateTransform Angle="60" />
  59. </Rectangle.RenderTransform>
  60. </Rectangle>
  61. <Rectangle
  62. x:Name="r04"
  63. Fill="{StaticResource brush}"
  64. Opacity="0.8"
  65. RenderTransformOrigin="0.5,0.5">
  66. <Rectangle.RenderTransform>
  67. <RotateTransform Angle="90" />
  68. </Rectangle.RenderTransform>
  69. </Rectangle>
  70. <Rectangle
  71. x:Name="r05"
  72. Fill="{StaticResource brush}"
  73. Opacity="0.8"
  74. RenderTransformOrigin="0.5,0.5">
  75. <Rectangle.RenderTransform>
  76. <RotateTransform Angle="120" />
  77. </Rectangle.RenderTransform>
  78. </Rectangle>
  79. <Rectangle
  80. x:Name="r06"
  81. Fill="{StaticResource brush}"
  82. Opacity="0.8"
  83. RenderTransformOrigin="0.5,0.5">
  84. <Rectangle.RenderTransform>
  85. <RotateTransform Angle="150" />
  86. </Rectangle.RenderTransform>
  87. </Rectangle>
  88. <Rectangle
  89. x:Name="r07"
  90. Fill="{StaticResource brush}"
  91. Opacity="0.8"
  92. RenderTransformOrigin="0.5,0.5">
  93. <Rectangle.RenderTransform>
  94. <RotateTransform Angle="180" />
  95. </Rectangle.RenderTransform>
  96. </Rectangle>
  97. <Rectangle
  98. x:Name="r08"
  99. Fill="{StaticResource brush}"
  100. Opacity="0.8"
  101. RenderTransformOrigin="0.5,0.5">
  102. <Rectangle.RenderTransform>
  103. <RotateTransform Angle="210" />
  104. </Rectangle.RenderTransform>
  105. </Rectangle>
  106. <Rectangle
  107. x:Name="r09"
  108. Fill="{StaticResource brush}"
  109. Opacity="0.8"
  110. RenderTransformOrigin="0.5,0.5">
  111. <Rectangle.RenderTransform>
  112. <RotateTransform Angle="240" />
  113. </Rectangle.RenderTransform>
  114. </Rectangle>
  115. <Rectangle
  116. x:Name="r10"
  117. Fill="{StaticResource brush}"
  118. Opacity="0.8"
  119. RenderTransformOrigin="0.5,0.5">
  120. <Rectangle.RenderTransform>
  121. <RotateTransform Angle="270" />
  122. </Rectangle.RenderTransform>
  123. </Rectangle>
  124. <Rectangle
  125. x:Name="r11"
  126. Fill="{StaticResource brush}"
  127. Opacity="0.8"
  128. RenderTransformOrigin="0.5,0.5">
  129. <Rectangle.RenderTransform>
  130. <RotateTransform Angle="300" />
  131. </Rectangle.RenderTransform>
  132. </Rectangle>
  133. <Rectangle
  134. x:Name="r12"
  135. Fill="{StaticResource brush}"
  136. Opacity="0.8"
  137. RenderTransformOrigin="0.5,0.5">
  138. <Rectangle.RenderTransform>
  139. <RotateTransform Angle="330" />
  140. </Rectangle.RenderTransform>
  141. </Rectangle>
  142. <Grid.Triggers>
  143. <EventTrigger RoutedEvent="Grid.Loaded">
  144. <BeginStoryboard>
  145. <Storyboard RepeatBehavior="Forever">
  146. <DoubleAnimation
  147. AutoReverse="True"
  148. BeginTime="0:0:0.00000"
  149. Storyboard.TargetName="r01"
  150. Storyboard.TargetProperty="Opacity"
  151. To="0"
  152. Duration="0:0:0.08333" />
  153. <DoubleAnimation
  154. AutoReverse="True"
  155. BeginTime="0:0:0.08333"
  156. Storyboard.TargetName="r02"
  157. Storyboard.TargetProperty="Opacity"
  158. To="0"
  159. Duration="0:0:0.08333" />
  160. <DoubleAnimation
  161. AutoReverse="True"
  162. BeginTime="0:0:0.16666"
  163. Storyboard.TargetName="r03"
  164. Storyboard.TargetProperty="Opacity"
  165. To="0"
  166. Duration="0:0:0.08333" />
  167. <DoubleAnimation
  168. AutoReverse="True"
  169. BeginTime="0:0:0.24999"
  170. Storyboard.TargetName="r04"
  171. Storyboard.TargetProperty="Opacity"
  172. To="0"
  173. Duration="0:0:0.08333" />
  174. <DoubleAnimation
  175. AutoReverse="True"
  176. BeginTime="0:0:0.33332"
  177. Storyboard.TargetName="r05"
  178. Storyboard.TargetProperty="Opacity"
  179. To="0"
  180. Duration="0:0:0.08333" />
  181. <DoubleAnimation
  182. AutoReverse="True"
  183. BeginTime="0:0:0.41665"
  184. Storyboard.TargetName="r06"
  185. Storyboard.TargetProperty="Opacity"
  186. To="0"
  187. Duration="0:0:0.08333" />
  188. <DoubleAnimation
  189. AutoReverse="True"
  190. BeginTime="0:0:0.49998"
  191. Storyboard.TargetName="r07"
  192. Storyboard.TargetProperty="Opacity"
  193. To="0"
  194. Duration="0:0:0.08333" />
  195. <DoubleAnimation
  196. AutoReverse="True"
  197. BeginTime="0:0:0.58331"
  198. Storyboard.TargetName="r08"
  199. Storyboard.TargetProperty="Opacity"
  200. To="0"
  201. Duration="0:0:0.08333" />
  202. <DoubleAnimation
  203. AutoReverse="True"
  204. BeginTime="0:0:0.66664"
  205. Storyboard.TargetName="r09"
  206. Storyboard.TargetProperty="Opacity"
  207. To="0"
  208. Duration="0:0:0.08333" />
  209. <DoubleAnimation
  210. AutoReverse="True"
  211. BeginTime="0:0:0.74997"
  212. Storyboard.TargetName="r10"
  213. Storyboard.TargetProperty="Opacity"
  214. To="0"
  215. Duration="0:0:0.08333" />
  216. <DoubleAnimation
  217. AutoReverse="True"
  218. BeginTime="0:0:0.83330"
  219. Storyboard.TargetName="r11"
  220. Storyboard.TargetProperty="Opacity"
  221. To="0"
  222. Duration="0:0:0.08333" />
  223. <DoubleAnimation
  224. AutoReverse="True"
  225. BeginTime="0:0:0.91663"
  226. Storyboard.TargetName="r12"
  227. Storyboard.TargetProperty="Opacity"
  228. To="0"
  229. Duration="0:0:0.08333" />
  230. </Storyboard>
  231. </BeginStoryboard>
  232. </EventTrigger>
  233. </Grid.Triggers>
  234. </Grid>
  235. </Border>
  236. </Grid>
  237. </Window>