LoadingControl.xaml 11 KB

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