WaitingSpinner.xaml 2.5 KB

12345678910111213141516171819202122232425262728293031
  1. <UserControl x:Class="UpgradePackageUploadTool.WaitingSpinner"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  4. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. mc:Ignorable="d"
  7. d:DesignHeight="450" d:DesignWidth="800">
  8. <Grid>
  9. <Grid.Resources>
  10. <SolidColorBrush Color="#FF007BE5" x:Key="ColorCircles" />
  11. </Grid.Resources>
  12. <Border x:Name="WaitingBackground" Background="LightGray" Opacity="0.3" />
  13. <Canvas x:Name="CanvasSpinner" HorizontalAlignment="Center" Width="100" Height="100" VerticalAlignment="Center" Loaded="OnCanvasLoaded" Unloaded="OnCanvasUnLoaded">
  14. <Ellipse x:Name="C0" Width="20" Height="20" Canvas.Left="0" Canvas.Top="0" Stretch="Fill" Fill="{StaticResource ColorCircles}" Opacity="1.0" />
  15. <Ellipse x:Name="C1" Width="20" Height="20" Canvas.Left="0" Canvas.Top="0" Stretch="Fill" Fill="{StaticResource ColorCircles}" Opacity="1.0" />
  16. <Ellipse x:Name="C2" Width="20" Height="20" Canvas.Left="0" Canvas.Top="0" Stretch="Fill" Fill="{StaticResource ColorCircles}" Opacity="1.0" />
  17. <Ellipse x:Name="C3" Width="20" Height="20" Canvas.Left="0" Canvas.Top="0" Stretch="Fill" Fill="{StaticResource ColorCircles}" Opacity="1.0" />
  18. <Ellipse x:Name="C4" Width="20" Height="20" Canvas.Left="0" Canvas.Top="0" Stretch="Fill" Fill="{StaticResource ColorCircles}" Opacity="1.0" />
  19. <Ellipse x:Name="C5" Width="20" Height="20" Canvas.Left="0" Canvas.Top="0" Stretch="Fill" Fill="{StaticResource ColorCircles}" Opacity="1.0" />
  20. <Ellipse x:Name="C6" Width="20" Height="20" Canvas.Left="0" Canvas.Top="0" Stretch="Fill" Fill="{StaticResource ColorCircles}" Opacity="1.0" />
  21. <Ellipse x:Name="C7" Width="20" Height="20" Canvas.Left="0" Canvas.Top="0" Stretch="Fill" Fill="{StaticResource ColorCircles}" Opacity="1.0" />
  22. <Ellipse x:Name="C8" Width="20" Height="20" Canvas.Left="0" Canvas.Top="0" Stretch="Fill" Fill="{StaticResource ColorCircles}" Opacity="1.0" />
  23. <Canvas.RenderTransform>
  24. <RotateTransform x:Name="SpinnerRotate" Angle="0" />
  25. </Canvas.RenderTransform>
  26. </Canvas>
  27. <TextBlock x:Name="ProgressTextBlock" VerticalAlignment="Center" HorizontalAlignment="Center"/>
  28. </Grid>
  29. </UserControl>