LoadingWait.xaml 4.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. <UserControl x:Class="AGV_WPF.LoadingWait"
  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. IsVisibleChanged="HandleVisibleChanged">
  6. <UserControl.Background>
  7. <SolidColorBrush Color="Black" Opacity="0.6" />
  8. </UserControl.Background>
  9. <UserControl.Resources>
  10. <SolidColorBrush Color="#FF007BE5" x:Key="CirclesColor" />
  11. <!--<SolidColorBrush Color="Black" x:Key="BackgroundColor" Opacity=".20" />-->
  12. </UserControl.Resources>
  13. <Grid>
  14. <Grid.ColumnDefinitions>
  15. <ColumnDefinition Width="*" />
  16. <ColumnDefinition Width="*" />
  17. </Grid.ColumnDefinitions>
  18. <Grid.RowDefinitions>
  19. <RowDefinition Height="*" />
  20. <RowDefinition Height="2*" />
  21. </Grid.RowDefinitions>
  22. <Image Source="/AGV_WPF;component/Image/error_72.png" Grid.Column="0" Grid.Row="0" HorizontalAlignment="Right" VerticalAlignment="Bottom" Stretch="None"></Image>
  23. <TextBlock Text="加密狗被拔出" Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Bottom" FontSize="32" Foreground="Red" FontWeight="Bold" Margin="0,0,0,18" />
  24. <Viewbox Width="150" Height="150" Grid.Column="0" Grid.Row="1" Grid.ColumnSpan="2"
  25. HorizontalAlignment="Center"
  26. VerticalAlignment="Top">
  27. <Grid x:Name="LayoutRoot"
  28. Background="Transparent"
  29. ToolTip="加密狗被拔出,正在关闭程序...."
  30. HorizontalAlignment="Center"
  31. VerticalAlignment="Center">
  32. <TextBlock Text="Closing..." HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="14" Foreground="Yellow" FontWeight="Bold" />
  33. <Canvas RenderTransformOrigin="0.5,0.5"
  34. HorizontalAlignment="Center"
  35. VerticalAlignment="Center" Width="120"
  36. Height="120" Loaded="HandleLoaded"
  37. Unloaded="HandleUnloaded" >
  38. <Ellipse x:Name="C0" Width="20" Height="20"
  39. Canvas.Left="0"
  40. Canvas.Top="0" Stretch="Fill"
  41. Fill="{StaticResource CirclesColor}" Opacity="1.0"/>
  42. <Ellipse x:Name="C1" Width="20" Height="20"
  43. Canvas.Left="0"
  44. Canvas.Top="0" Stretch="Fill"
  45. Fill="{StaticResource CirclesColor}" Opacity="0.9"/>
  46. <Ellipse x:Name="C2" Width="20" Height="20"
  47. Canvas.Left="0"
  48. Canvas.Top="0" Stretch="Fill"
  49. Fill="{StaticResource CirclesColor}" Opacity="0.8"/>
  50. <Ellipse x:Name="C3" Width="20" Height="20"
  51. Canvas.Left="0"
  52. Canvas.Top="0" Stretch="Fill"
  53. Fill="{StaticResource CirclesColor}" Opacity="0.7"/>
  54. <Ellipse x:Name="C4" Width="20" Height="20"
  55. Canvas.Left="0"
  56. Canvas.Top="0" Stretch="Fill"
  57. Fill="{StaticResource CirclesColor}" Opacity="0.6"/>
  58. <Ellipse x:Name="C5" Width="20" Height="20"
  59. Canvas.Left="0"
  60. Canvas.Top="0" Stretch="Fill"
  61. Fill="{StaticResource CirclesColor}" Opacity="0.5"/>
  62. <Ellipse x:Name="C6" Width="20" Height="20"
  63. Canvas.Left="0"
  64. Canvas.Top="0" Stretch="Fill"
  65. Fill="{StaticResource CirclesColor}" Opacity="0.4"/>
  66. <Ellipse x:Name="C7" Width="20" Height="20"
  67. Canvas.Left="0"
  68. Canvas.Top="0" Stretch="Fill"
  69. Fill="{StaticResource CirclesColor}" Opacity="0.3"/>
  70. <Ellipse x:Name="C8" Width="20" Height="20"
  71. Canvas.Left="0"
  72. Canvas.Top="0" Stretch="Fill"
  73. Fill="{StaticResource CirclesColor}" Opacity="0.2"/>
  74. <Canvas.RenderTransform>
  75. <RotateTransform x:Name="SpinnerRotate"
  76. Angle="0" />
  77. </Canvas.RenderTransform>
  78. </Canvas>
  79. </Grid>
  80. </Viewbox>
  81. </Grid>
  82. </UserControl>