Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <Window x:Class="ru.flex.Pingavator.PointLoadingWindow"
- 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"
- mc:Ignorable="d"
- Title="PointLoadingWindow" Height="200" Width="200"
- AllowsTransparency="True" WindowStyle="None" ShowInTaskbar="False">
- <Window.Background>
- <SolidColorBrush Opacity="0" Color="White"/>
- </Window.Background>
- <Grid>
- <Image
- Source="/images/spinner.png"
- Width="100"
- Height="100"
- RenderTransformOrigin="0.5, 0.5">
- <Image.Effect>
- <DropShadowEffect ShadowDepth="15" BlurRadius="15" RenderingBias="Performance"/>
- </Image.Effect>
- <Image.RenderTransform>
- <RotateTransform x:Name="noFreeze" />
- </Image.RenderTransform>
- <Image.Triggers>
- <EventTrigger RoutedEvent="Loaded">
- <BeginStoryboard>
- <Storyboard>
- <DoubleAnimation
- Storyboard.TargetProperty="(Image.RenderTransform).(RotateTransform.Angle)"
- To="360" Duration="0:0:1" RepeatBehavior="Forever" />
- <DoubleAnimation
- Storyboard.TargetProperty="(Image.Effect).(DropShadowEffect.Direction)"
- From="315" To="675" Duration="0:0:1" RepeatBehavior="Forever" />
- <DoubleAnimation
- Storyboard.TargetProperty="(Image.Effect).(DropShadowEffect.ShadowDepth)"
- From="35" To="5" Duration="0:0:2" RepeatBehavior="Forever" AutoReverse="True"/>
- <DoubleAnimation
- Storyboard.TargetProperty="(Image.Effect).(DropShadowEffect.BlurRadius)"
- From="30" To="5" Duration="0:0:2" RepeatBehavior="Forever" AutoReverse="True"/>
- <ThicknessAnimationUsingKeyFrames Storyboard.TargetProperty="Margin" BeginTime="00:00:00"
- RepeatBehavior="Forever" AutoReverse="True">
- <SplineThicknessKeyFrame KeyTime="00:00:00" Value="-15,-15,0,0" />
- <SplineThicknessKeyFrame KeyTime="00:00:2" Value="15,15,0,0" />
- </ThicknessAnimationUsingKeyFrames>
- </Storyboard>
- </BeginStoryboard>
- </EventTrigger>
- </Image.Triggers>
- </Image>
- </Grid>
- </Window>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement