WaitingSpinner.xaml 2.4 KB

12345678910111213141516171819202122232425262728293031
  1. <UserControl x:Class="AIPractice.LabellerServer.WPF.WaitingSpinner"
  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:AIPractice.LabellerServer.WPF"
  7. mc:Ignorable="d"
  8. d:DesignHeight="200" d:DesignWidth="200">
  9. <!--遮罩层-->
  10. <Grid x:Name="Overlay">
  11. <Grid.Resources>
  12. <SolidColorBrush Color="#FF007BE5" x:Key="ColorCircles"/>
  13. </Grid.Resources>
  14. <Canvas x:Name="Canvas_Spinner" HorizontalAlignment="Center" Width="150" Height="150" VerticalAlignment="Center" Loaded="Canvas_Loaded" Unloaded="Canvas_UnLoaded">
  15. <Ellipse x:Name="C0" Width="20" Height="20" Canvas.Left="0" Canvas.Top="0" Stretch="Fill" Fill="{StaticResource ColorCircles}" Opacity="1.0"/>
  16. <Ellipse x:Name="C1" Width="20" Height="20" Canvas.Left="0" Canvas.Top="0" Stretch="Fill" Fill="{StaticResource ColorCircles}" Opacity="1.0"/>
  17. <Ellipse x:Name="C2" Width="20" Height="20" Canvas.Left="0" Canvas.Top="0" Stretch="Fill" Fill="{StaticResource ColorCircles}" Opacity="1.0"/>
  18. <Ellipse x:Name="C3" Width="20" Height="20" Canvas.Left="0" Canvas.Top="0" Stretch="Fill" Fill="{StaticResource ColorCircles}" Opacity="1.0"/>
  19. <Ellipse x:Name="C4" Width="20" Height="20" Canvas.Left="0" Canvas.Top="0" Stretch="Fill" Fill="{StaticResource ColorCircles}" Opacity="1.0"/>
  20. <Ellipse x:Name="C5" Width="20" Height="20" Canvas.Left="0" Canvas.Top="0" Stretch="Fill" Fill="{StaticResource ColorCircles}" Opacity="1.0"/>
  21. <Ellipse x:Name="C6" Width="20" Height="20" Canvas.Left="0" Canvas.Top="0" Stretch="Fill" Fill="{StaticResource ColorCircles}" Opacity="1.0"/>
  22. <Ellipse x:Name="C7" Width="20" Height="20" Canvas.Left="0" Canvas.Top="0" Stretch="Fill" Fill="{StaticResource ColorCircles}" Opacity="1.0"/>
  23. <!--<Ellipse x:Name="C8" Width="20" Height="20" Canvas.Left="0" Canvas.Top="0" Stretch="Fill" Fill="{StaticResource ColorCircles}" Opacity="1.0"/>-->
  24. <Canvas.RenderTransform>
  25. <RotateTransform x:Name="SpinnerRotate" Angle="0"/>
  26. </Canvas.RenderTransform>
  27. </Canvas>
  28. </Grid>
  29. </UserControl>