-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainPage.xaml
60 lines (56 loc) · 1.79 KB
/
MainPage.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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<Page x:Class="App1.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:App1"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d"
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
<Page.Resources>
<Storyboard x:Name="Storyboard1">
<DoubleAnimation Duration="00:00:04"
Storyboard.TargetName="Proj"
Storyboard.TargetProperty="(UIElement.Projection).(PlaneProjection.RotationX)"
From="90"
To="0" />
<!--<DoubleAnimation Duration="00:00:01"
Storyboard.TargetName="Proj"
Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateY)"
From="50"
To="0" />-->
</Storyboard>
</Page.Resources>
<Grid>
<StackPanel VerticalAlignment="Center">
<Border Width="300"
Height="250"
Background="LightSeaGreen"
x:Name="Persp"
Margin="0,0,0,40">
<TextBlock Text="Composition"
FontSize="28"
HorizontalAlignment="Center"
VerticalAlignment="Center"
FontWeight="Bold"
Foreground="White" />
</Border>
<Border Width="300"
Height="250"
Background="LightCoral"
x:Name="Proj">
<Border.RenderTransform>
<CompositeTransform />
</Border.RenderTransform>
<Border.Projection>
<PlaneProjection CenterOfRotationX="0.5" CenterOfRotationY="0.5" />
</Border.Projection>
<TextBlock Text="PlaneProjection"
FontSize="28"
HorizontalAlignment="Center"
VerticalAlignment="Center"
FontWeight="Bold"
Foreground="White" />
</Border>
</StackPanel>
</Grid>
</Page>