102 lines
3.8 KiB
XML
102 lines
3.8 KiB
XML
<UserControl
|
|
x:Class="BeWo.View.Core.WaitLayer3"
|
|
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:local="clr-namespace:BeWo.View.Core"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:view="clr-namespace:BeWo.ViewModel.View"
|
|
d:DataContext="{d:DesignInstance Type=view:WindowViewModel,
|
|
IsDesignTimeCreatable=True}"
|
|
mc:Ignorable="d">
|
|
<UserControl.Resources>
|
|
<ResourceDictionary>
|
|
<ResourceDictionary.MergedDictionaries>
|
|
<ResourceDictionary Source="..\..\Styles\ModernOrangeBlack.xaml" />
|
|
</ResourceDictionary.MergedDictionaries>
|
|
|
|
<!-- Bouncing Dots Animation -->
|
|
<Storyboard x:Key="BouncingDotsStoryboard" RepeatBehavior="Forever">
|
|
<DoubleAnimation
|
|
AutoReverse="True"
|
|
Storyboard.TargetName="Dot1"
|
|
Storyboard.TargetProperty="(Canvas.Top)"
|
|
From="20"
|
|
To="0"
|
|
Duration="0:0:0.5" />
|
|
<DoubleAnimation
|
|
AutoReverse="True"
|
|
BeginTime="0:0:0.1"
|
|
Storyboard.TargetName="Dot2"
|
|
Storyboard.TargetProperty="(Canvas.Top)"
|
|
From="20"
|
|
To="0"
|
|
Duration="0:0:0.5" />
|
|
<DoubleAnimation
|
|
AutoReverse="True"
|
|
BeginTime="0:0:0.2"
|
|
Storyboard.TargetName="Dot3"
|
|
Storyboard.TargetProperty="(Canvas.Top)"
|
|
From="20"
|
|
To="0"
|
|
Duration="0:0:0.5" />
|
|
</Storyboard>
|
|
</ResourceDictionary>
|
|
</UserControl.Resources>
|
|
<Border
|
|
MinWidth="250"
|
|
Padding="20"
|
|
Background="#FFFFFFFF"
|
|
BorderBrush="#FF606060"
|
|
BorderThickness="1"
|
|
CornerRadius="12">
|
|
<Border.OpacityMask>
|
|
<LinearGradientBrush StartPoint="0.5,0" EndPoint="0.5,1">
|
|
<GradientStop Offset="0.027" Color="#F3FFFFFF" />
|
|
<GradientStop Offset="1" Color="#D7FFFFFF" />
|
|
</LinearGradientBrush>
|
|
</Border.OpacityMask>
|
|
<StackPanel>
|
|
<Canvas
|
|
Width="80"
|
|
Height="40"
|
|
Margin="4">
|
|
<Ellipse
|
|
x:Name="Dot1"
|
|
Canvas.Left="10"
|
|
Canvas.Top="20"
|
|
Width="12"
|
|
Height="12"
|
|
Fill="#FFFF6B35" />
|
|
<Ellipse
|
|
x:Name="Dot2"
|
|
Canvas.Left="34"
|
|
Canvas.Top="20"
|
|
Width="12"
|
|
Height="12"
|
|
Fill="#FFFF6B35" />
|
|
<Ellipse
|
|
x:Name="Dot3"
|
|
Canvas.Left="58"
|
|
Canvas.Top="20"
|
|
Width="12"
|
|
Height="12"
|
|
Fill="#FFFF6B35" />
|
|
<Canvas.Triggers>
|
|
<EventTrigger RoutedEvent="Loaded">
|
|
<BeginStoryboard Storyboard="{StaticResource BouncingDotsStoryboard}" />
|
|
</EventTrigger>
|
|
</Canvas.Triggers>
|
|
</Canvas>
|
|
<TextBlock
|
|
Margin="3,13,3,3"
|
|
HorizontalAlignment="Center"
|
|
FontFamily="Microsoft Sans Serif"
|
|
FontSize="12"
|
|
FontWeight="Normal"
|
|
Foreground="#FF000000"
|
|
Text="{Binding WaitingText}" />
|
|
</StackPanel>
|
|
</Border>
|
|
</UserControl>
|