55 lines
3.0 KiB
XML
55 lines
3.0 KiB
XML
<UserControl x:Class="HighWay.PrintLable.LoadingTime"
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:local="clr-namespace:HighWay.PrintLable"
|
|
mc:Ignorable="d"
|
|
d:DesignHeight="300" d:DesignWidth="300">
|
|
<UserControl.Resources>
|
|
<ResourceDictionary>
|
|
<Style x:Key="EllipseStyle" TargetType="Ellipse">
|
|
<Setter Property="Width" Value="16"/>
|
|
<Setter Property="Height" Value="16"/>
|
|
<Setter Property="Stretch" Value="Fill"/>
|
|
<Setter Property="Fill" Value="#ff6640"/>
|
|
</Style>
|
|
</ResourceDictionary>
|
|
</UserControl.Resources>
|
|
<Grid x:Name="LayoutRoot" Background="Transparent"
|
|
HorizontalAlignment="Center" VerticalAlignment="Center" Width="300" Height="300">
|
|
<Grid.RenderTransform>
|
|
<ScaleTransform x:Name="SpinnerScale" ScaleX="1.0" ScaleY="1.0" />
|
|
</Grid.RenderTransform>
|
|
<Canvas RenderTransformOrigin="0.5,0.5" >
|
|
<Ellipse Style="{StaticResource EllipseStyle}" Opacity="1.0"
|
|
Canvas.Left="135" Canvas.Top="66" Width="25" Height="25" />
|
|
<Ellipse Style="{StaticResource EllipseStyle}" Opacity="0.8"
|
|
Canvas.Left="87" Canvas.Top="87" Width="25" Height="25" />
|
|
<Ellipse Style="{StaticResource EllipseStyle}" Opacity="0.6"
|
|
Canvas.Left="65" Canvas.Top="135" Width="25" Height="25" />
|
|
<Ellipse Style="{StaticResource EllipseStyle}" Opacity="0.4"
|
|
Canvas.Left="87" Canvas.Top="182" Width="25" Height="25" />
|
|
<Ellipse Style="{StaticResource EllipseStyle}" Opacity="0.2"
|
|
Canvas.Left="135" Canvas.Top="203" Width="25" Height="25" />
|
|
<Ellipse Style="{StaticResource EllipseStyle}" Opacity="0.1"
|
|
Canvas.Left="183" Canvas.Top="182" Width="25" Height="25" />
|
|
<Canvas.RenderTransform>
|
|
<RotateTransform x:Name="SpinnerRotate" Angle="0" />
|
|
</Canvas.RenderTransform>
|
|
<Canvas.Triggers>
|
|
<EventTrigger RoutedEvent="ContentControl.Loaded">
|
|
<BeginStoryboard>
|
|
<Storyboard>
|
|
<DoubleAnimation
|
|
Storyboard.TargetName ="SpinnerRotate"
|
|
Storyboard.TargetProperty ="(RotateTransform.Angle)"
|
|
From="0" To="360" Duration="0:0:3" RepeatBehavior="Forever" />
|
|
</Storyboard>
|
|
</BeginStoryboard>
|
|
</EventTrigger>
|
|
</Canvas.Triggers>
|
|
</Canvas>
|
|
</Grid>
|
|
</UserControl>
|