CircleProgress.xaml 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <UserControl x:Class="AIRS.CircleProgress"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:AIRS"
  7. mc:Ignorable="d"
  8. d:DesignHeight="120" d:DesignWidth="120">
  9. <Grid>
  10. <Grid x:Name="LayoutRoot" Background="Transparent"
  11. HorizontalAlignment="Center" VerticalAlignment="Center">
  12. <Grid.RenderTransform>
  13. <ScaleTransform x:Name="SpinnerScale"
  14. ScaleX="1.0" ScaleY="1.0" />
  15. </Grid.RenderTransform>
  16. <Canvas RenderTransformOrigin="0.5,0.5"
  17. HorizontalAlignment="Center"
  18. VerticalAlignment="Center"
  19. Width="120" Height="120" >
  20. <Ellipse Width="21.835" Height="21.862"
  21. Canvas.Left="20.1696"
  22. Canvas.Top="9.76358"
  23. Stretch="Fill" Fill="Cyan"
  24. Opacity="1.0"/>
  25. <Ellipse Width="21.835" Height="21.862"
  26. Canvas.Left="2.86816"
  27. Canvas.Top="29.9581" Stretch="Fill"
  28. Fill="Cyan" Opacity="0.9"/>
  29. <Ellipse Width="21.835" Height="21.862"
  30. Canvas.Left="5.03758e-006"
  31. Canvas.Top="57.9341" Stretch="Fill"
  32. Fill="Cyan" Opacity="0.8"/>
  33. <Ellipse Width="21.835" Height="21.862"
  34. Canvas.Left="12.1203"
  35. Canvas.Top="83.3163" Stretch="Fill"
  36. Fill="Cyan" Opacity="0.7"/>
  37. <Ellipse Width="21.835" Height="21.862"
  38. Canvas.Left="36.5459"
  39. Canvas.Top="98.138" Stretch="Fill"
  40. Fill="Cyan" Opacity="0.6"/>
  41. <Ellipse Width="21.835" Height="21.862"
  42. Canvas.Left="64.6723"
  43. Canvas.Top="96.8411" Stretch="Fill"
  44. Fill="Cyan" Opacity="0.5"/>
  45. <Ellipse Width="21.835" Height="21.862"
  46. Canvas.Left="87.6176"
  47. Canvas.Top="81.2783" Stretch="Fill"
  48. Fill="Cyan" Opacity="0.4"/>
  49. <Ellipse Width="21.835" Height="21.862"
  50. Canvas.Left="98.165"
  51. Canvas.Top="54.414" Stretch="Fill"
  52. Fill="Cyan" Opacity="0.3"/>
  53. <Ellipse Width="21.835" Height="21.862"
  54. Canvas.Left="92.9838"
  55. Canvas.Top="26.9938" Stretch="Fill"
  56. Fill="Cyan" Opacity="0.2"/>
  57. <Ellipse Width="21.835" Height="21.862"
  58. Canvas.Left="47.2783"
  59. Canvas.Top="0.5" Stretch="Fill"
  60. Fill="Cyan" Opacity="0.1"/>
  61. <Canvas.RenderTransform>
  62. <RotateTransform x:Name="SpinnerRotate"
  63. Angle="0" />
  64. </Canvas.RenderTransform>
  65. <Canvas.Triggers>
  66. <EventTrigger RoutedEvent="ContentControl.Loaded">
  67. <BeginStoryboard>
  68. <Storyboard>
  69. <DoubleAnimation
  70. Storyboard.TargetName="SpinnerRotate"
  71. Storyboard.TargetProperty="(RotateTransform.Angle)"
  72. From="0" To="360"
  73. Duration="0:0:01"
  74. RepeatBehavior="Forever" />
  75. </Storyboard>
  76. </BeginStoryboard>
  77. </EventTrigger>
  78. </Canvas.Triggers>
  79. </Canvas>
  80. <Label Content="loading......" Width="70" Margin="25,45,25,45" Foreground="White" VerticalContentAlignment="Center"></Label>
  81. </Grid>
  82. </Grid>
  83. </UserControl>