-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDiner1.xaml
33 lines (31 loc) · 1.51 KB
/
Diner1.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
<!-- =========================================
Diner1.xaml (c) 2006 by Charles Petzold
========================================= -->
<Page xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
<Grid TextBlock.FontSize="192">
<TextBlock Name="eat" Text="EAT" Foreground="Red"
HorizontalAlignment="Center"
VerticalAlignment="Center" />
<TextBlock Name="here" Text="HERE" Foreground="Blue"
Opacity="0"
HorizontalAlignment="Center"
VerticalAlignment="Center" />
</Grid>
<Page.Triggers>
<EventTrigger RoutedEvent="Canvas.Loaded">
<BeginStoryboard>
<Storyboard TargetProperty="Opacity" RepeatBehavior="Forever">
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="eat">
<DiscreteDoubleKeyFrame KeyTime="0:0:1" Value="0" />
<DiscreteDoubleKeyFrame KeyTime="0:0:2" Value="1" />
</DoubleAnimationUsingKeyFrames>
<DoubleAnimationUsingKeyFrames Storyboard.TargetName="here">
<DiscreteDoubleKeyFrame KeyTime="0:0:1" Value="1" />
<DiscreteDoubleKeyFrame KeyTime="0:0:2" Value="0" />
</DoubleAnimationUsingKeyFrames>
</Storyboard>
</BeginStoryboard>
</EventTrigger>
</Page.Triggers>
</Page>