-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathIntroToBlend_Animation.xaml
36 lines (35 loc) · 1.85 KB
/
IntroToBlend_Animation.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<Window x:Class="IntroToBlend_Animation.MainWindow"
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:IntroToBlend_Animation"
mc:Ignorable="d"
Title="MainWindow" Height="450" Width="800">
<Window.Resources>
<Storyboard x:Key="TextAnimation">
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="label" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[3].(TranslateTransform.X)">
<EasingDoubleKeyFrame KeyTime="00:00:00" Value="383.677"/>
<EasingDoubleKeyFrame KeyTime="00:00:01" Value="20.853"/>
</DoubleAnimationUsingKeyFrames>
</Storyboard>
</Window.Resources>
<Grid x:Name="Simple_Animation" Width="400" Height="300">
<Grid.Background>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="Black"/>
<GradientStop Color="#FF27577C" Offset="1"/>
</LinearGradientBrush>
</Grid.Background>
<Label x:Name="label" Content="Blend" HorizontalAlignment="Left" Height="121" Margin="5,129,0,0" VerticalAlignment="Top" Width="363" FontSize="72" Background="#FF0F3F64" Foreground="#FFCCE2DE" RenderTransformOrigin="0.5,0.5">
<Label.RenderTransform>
<TransformGroup>
<ScaleTransform/>
<SkewTransform/>
<RotateTransform/>
<TranslateTransform/>
</TransformGroup>
</Label.RenderTransform>
</Label>
</Grid>
</Window>