PEPTool/AV-ToolV3/ucAnimatedArrow.xaml
2025-10-08 10:11:18 +02:00

55 lines
3.4 KiB
XML

<UserControl x:Name="AnimatedArrow" x:Class="PEP_Tool.ucAnimatedArrow"
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:PEP_Tool"
mc:Ignorable="d" Height="300" Width="171">
<UserControl.Resources>
<Storyboard x:Key="Storyboard1" RepeatBehavior="Forever" SpeedRatio="0.7">
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="image" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.Y)">
<EasingDoubleKeyFrame KeyTime="00:00:00.1000000" Value="-30"/>
<EasingDoubleKeyFrame KeyTime="00:00:00.1500000" Value="-67.333"/>
<EasingDoubleKeyFrame KeyTime="00:00:00.2000000" Value="-30"/>
<EasingDoubleKeyFrame KeyTime="00:00:00.2500000" Value="30"/>
<EasingDoubleKeyFrame KeyTime="00:00:00.3000000" Value="67.333"/>
<EasingDoubleKeyFrame KeyTime="00:00:00.3500000" Value="30"/>
<EasingDoubleKeyFrame KeyTime="00:00:00.4000000" Value="-1.333"/>
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="image" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
<EasingDoubleKeyFrame KeyTime="00:00:00.1000000" Value="0.667"/>
<EasingDoubleKeyFrame KeyTime="00:00:00.2000000" Value="0.667"/>
<EasingDoubleKeyFrame KeyTime="00:00:00.2500000" Value="-0.666"/>
<EasingDoubleKeyFrame KeyTime="00:00:00.3500000" Value="-0.666"/>
<EasingDoubleKeyFrame KeyTime="00:00:00.4000000" Value="0.001"/>
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="image" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)">
<EasingDoubleKeyFrame KeyTime="00:00:00.1000000" Value="1"/>
<EasingDoubleKeyFrame KeyTime="00:00:00.1500000" Value="0.689"/>
<EasingDoubleKeyFrame KeyTime="00:00:00.2000000" Value="1"/>
<EasingDoubleKeyFrame KeyTime="00:00:00.2500000" Value="1"/>
<EasingDoubleKeyFrame KeyTime="00:00:00.3000000" Value="0.689"/>
<EasingDoubleKeyFrame KeyTime="00:00:00.3500000" Value="1"/>
</DoubleAnimationUsingKeyFrames>
</Storyboard>
</UserControl.Resources>
<UserControl.Triggers>
<EventTrigger RoutedEvent="FrameworkElement.Loaded">
<BeginStoryboard Storyboard="{StaticResource Storyboard1}"/>
</EventTrigger>
</UserControl.Triggers>
<Grid>
<Image x:Name="image" Source="Arrow.png" RenderTransformOrigin="0.5,0.5" Stretch="Fill" Height="240" Width="171">
<Image.RenderTransform>
<TransformGroup>
<ScaleTransform/>
<SkewTransform/>
<RotateTransform/>
<TranslateTransform/>
</TransformGroup>
</Image.RenderTransform>
</Image>
</Grid>
</UserControl>