123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238 |
- <Window x:Class="XHZB.Desktop.LoadDialog"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:local="clr-namespace:XHZB.Desktop"
- Width="100"
- Height="100"
- AllowsTransparency="True"
- Background="Transparent"
- Opacity="1"
- ResizeMode="NoResize"
- Topmost="True"
- WindowStartupLocation="CenterScreen"
- WindowStyle="None">
- <Grid>
- <Border Background="#66000000" CornerRadius="10 10 10 10">
- <Grid Width="60" Height="60">
- <Grid.Resources>
- <DrawingBrush
- x:Key="brush"
- AlignmentX="Center"
- AlignmentY="Top"
- Stretch="None">
- <DrawingBrush.Drawing>
- <GeometryDrawing Brush="White">
- <GeometryDrawing.Geometry>
- <EllipseGeometry RadiusX="2" RadiusY="5" />
- </GeometryDrawing.Geometry>
- </GeometryDrawing>
- </DrawingBrush.Drawing>
- </DrawingBrush>
- </Grid.Resources>
-
- <Rectangle
- x:Name="r01"
- Fill="{StaticResource brush}"
- Opacity="0.8"
- RenderTransformOrigin="0.5,0.5">
- <Rectangle.RenderTransform>
- <RotateTransform Angle="0" />
- </Rectangle.RenderTransform>
- </Rectangle>
- <Rectangle
- x:Name="r02"
- Fill="{StaticResource brush}"
- Opacity="0.8"
- RenderTransformOrigin="0.5,0.5">
- <Rectangle.RenderTransform>
- <RotateTransform Angle="30" />
- </Rectangle.RenderTransform>
- </Rectangle>
- <Rectangle
- x:Name="r03"
- Fill="{StaticResource brush}"
- Opacity="0.8"
- RenderTransformOrigin="0.5,0.5">
- <Rectangle.RenderTransform>
- <RotateTransform Angle="60" />
- </Rectangle.RenderTransform>
- </Rectangle>
- <Rectangle
- x:Name="r04"
- Fill="{StaticResource brush}"
- Opacity="0.8"
- RenderTransformOrigin="0.5,0.5">
- <Rectangle.RenderTransform>
- <RotateTransform Angle="90" />
- </Rectangle.RenderTransform>
- </Rectangle>
- <Rectangle
- x:Name="r05"
- Fill="{StaticResource brush}"
- Opacity="0.8"
- RenderTransformOrigin="0.5,0.5">
- <Rectangle.RenderTransform>
- <RotateTransform Angle="120" />
- </Rectangle.RenderTransform>
- </Rectangle>
- <Rectangle
- x:Name="r06"
- Fill="{StaticResource brush}"
- Opacity="0.8"
- RenderTransformOrigin="0.5,0.5">
- <Rectangle.RenderTransform>
- <RotateTransform Angle="150" />
- </Rectangle.RenderTransform>
- </Rectangle>
- <Rectangle
- x:Name="r07"
- Fill="{StaticResource brush}"
- Opacity="0.8"
- RenderTransformOrigin="0.5,0.5">
- <Rectangle.RenderTransform>
- <RotateTransform Angle="180" />
- </Rectangle.RenderTransform>
- </Rectangle>
- <Rectangle
- x:Name="r08"
- Fill="{StaticResource brush}"
- Opacity="0.8"
- RenderTransformOrigin="0.5,0.5">
- <Rectangle.RenderTransform>
- <RotateTransform Angle="210" />
- </Rectangle.RenderTransform>
- </Rectangle>
- <Rectangle
- x:Name="r09"
- Fill="{StaticResource brush}"
- Opacity="0.8"
- RenderTransformOrigin="0.5,0.5">
- <Rectangle.RenderTransform>
- <RotateTransform Angle="240" />
- </Rectangle.RenderTransform>
- </Rectangle>
- <Rectangle
- x:Name="r10"
- Fill="{StaticResource brush}"
- Opacity="0.8"
- RenderTransformOrigin="0.5,0.5">
- <Rectangle.RenderTransform>
- <RotateTransform Angle="270" />
- </Rectangle.RenderTransform>
- </Rectangle>
- <Rectangle
- x:Name="r11"
- Fill="{StaticResource brush}"
- Opacity="0.8"
- RenderTransformOrigin="0.5,0.5">
- <Rectangle.RenderTransform>
- <RotateTransform Angle="300" />
- </Rectangle.RenderTransform>
- </Rectangle>
- <Rectangle
- x:Name="r12"
- Fill="{StaticResource brush}"
- Opacity="0.8"
- RenderTransformOrigin="0.5,0.5">
- <Rectangle.RenderTransform>
- <RotateTransform Angle="330" />
- </Rectangle.RenderTransform>
- </Rectangle>
- <Grid.Triggers>
- <EventTrigger RoutedEvent="Grid.Loaded">
- <BeginStoryboard>
- <Storyboard RepeatBehavior="Forever">
- <DoubleAnimation
- AutoReverse="True"
- BeginTime="0:0:0.00000"
- Storyboard.TargetName="r01"
- Storyboard.TargetProperty="Opacity"
- To="0"
- Duration="0:0:0.08333" />
- <DoubleAnimation
- AutoReverse="True"
- BeginTime="0:0:0.08333"
- Storyboard.TargetName="r02"
- Storyboard.TargetProperty="Opacity"
- To="0"
- Duration="0:0:0.08333" />
- <DoubleAnimation
- AutoReverse="True"
- BeginTime="0:0:0.16666"
- Storyboard.TargetName="r03"
- Storyboard.TargetProperty="Opacity"
- To="0"
- Duration="0:0:0.08333" />
- <DoubleAnimation
- AutoReverse="True"
- BeginTime="0:0:0.24999"
- Storyboard.TargetName="r04"
- Storyboard.TargetProperty="Opacity"
- To="0"
- Duration="0:0:0.08333" />
- <DoubleAnimation
- AutoReverse="True"
- BeginTime="0:0:0.33332"
- Storyboard.TargetName="r05"
- Storyboard.TargetProperty="Opacity"
- To="0"
- Duration="0:0:0.08333" />
- <DoubleAnimation
- AutoReverse="True"
- BeginTime="0:0:0.41665"
- Storyboard.TargetName="r06"
- Storyboard.TargetProperty="Opacity"
- To="0"
- Duration="0:0:0.08333" />
- <DoubleAnimation
- AutoReverse="True"
- BeginTime="0:0:0.49998"
- Storyboard.TargetName="r07"
- Storyboard.TargetProperty="Opacity"
- To="0"
- Duration="0:0:0.08333" />
- <DoubleAnimation
- AutoReverse="True"
- BeginTime="0:0:0.58331"
- Storyboard.TargetName="r08"
- Storyboard.TargetProperty="Opacity"
- To="0"
- Duration="0:0:0.08333" />
- <DoubleAnimation
- AutoReverse="True"
- BeginTime="0:0:0.66664"
- Storyboard.TargetName="r09"
- Storyboard.TargetProperty="Opacity"
- To="0"
- Duration="0:0:0.08333" />
- <DoubleAnimation
- AutoReverse="True"
- BeginTime="0:0:0.74997"
- Storyboard.TargetName="r10"
- Storyboard.TargetProperty="Opacity"
- To="0"
- Duration="0:0:0.08333" />
- <DoubleAnimation
- AutoReverse="True"
- BeginTime="0:0:0.83330"
- Storyboard.TargetName="r11"
- Storyboard.TargetProperty="Opacity"
- To="0"
- Duration="0:0:0.08333" />
- <DoubleAnimation
- AutoReverse="True"
- BeginTime="0:0:0.91663"
- Storyboard.TargetName="r12"
- Storyboard.TargetProperty="Opacity"
- To="0"
- Duration="0:0:0.08333" />
- </Storyboard>
- </BeginStoryboard>
- </EventTrigger>
- </Grid.Triggers>
- </Grid>
- </Border>
- </Grid>
- </Window>
|