-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainPage.xaml
204 lines (191 loc) · 13.2 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
<phone:PhoneApplicationPage
x:Class="inline.MainPage"
xmlns:main="clr-namespace:inline"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
FontFamily="{StaticResource PhoneFontFamilyNormal}"
FontSize="{StaticResource PhoneFontSizeNormal}"
Foreground="{StaticResource PhoneForegroundBrush}"
SupportedOrientations="Portrait" Orientation="Portrait"
mc:Ignorable="d" d:DesignWidth="480" d:DesignHeight="768"
shell:SystemTray.IsVisible="True">
<phone:PhoneApplicationPage.Resources>
<Style x:Key="TextButton" TargetType="Button">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Grid Margin="1">
<Rectangle x:Name="rect" Stroke="Gray" StrokeThickness="2" Stretch="Fill" Fill="Black"/>
<ContentPresenter
Content="{TemplateBinding Content}"
HorizontalAlignment="Center"
VerticalAlignment="Center"
/>
<VisualStateManager.VisualStateGroups>
<VisualStateGroup x:Name="custom">
<VisualStateGroup.Transitions>
<VisualTransition GeneratedDuration="00:00:0.5" />
</VisualStateGroup.Transitions>
<VisualState x:Name="Empty">
<Storyboard>
<ColorAnimation Duration="0:0:5" To="Black"
Storyboard.TargetProperty="(Rectangle.Fill).(SolidColorBrush.Color)"
Storyboard.TargetName="rect"
/>
</Storyboard>
</VisualState>
<VisualState x:Name="Some1">
<Storyboard>
<ColorAnimation Duration="0:0:2" To="#FFBD00"
Storyboard.TargetProperty="(Rectangle.Fill).(SolidColorBrush.Color)"
Storyboard.TargetName="rect"
/>
</Storyboard>
</VisualState>
<VisualState x:Name="Some2">
<Storyboard>
<ColorAnimation Duration="0:0:2" To="#D95638"
Storyboard.TargetProperty="(Rectangle.Fill).(SolidColorBrush.Color)"
Storyboard.TargetName="rect"
/>
</Storyboard>
</VisualState>
<VisualState x:Name="Some3">
<Storyboard>
<ColorAnimation Duration="0:0:2" To="#bb33ee"
Storyboard.TargetProperty="(Rectangle.Fill).(SolidColorBrush.Color)"
Storyboard.TargetName="rect"
/>
</Storyboard>
</VisualState>
<VisualState x:Name="Some4">
<Storyboard>
<ColorAnimation Duration="0:0:2" To="#B8BF9D"
Storyboard.TargetProperty="(Rectangle.Fill).(SolidColorBrush.Color)"
Storyboard.TargetName="rect"
/>
</Storyboard>
</VisualState>
<VisualState x:Name="Some5">
<Storyboard>
<ColorAnimation Duration="0:0:2" To="#3399dd"
Storyboard.TargetProperty="(Rectangle.Fill).(SolidColorBrush.Color)"
Storyboard.TargetName="rect"
/>
</Storyboard>
</VisualState>
<VisualState x:Name="Some6">
<Storyboard>
<ColorAnimation Duration="0:0:2" To="#337722"
Storyboard.TargetProperty="(Rectangle.Fill).(SolidColorBrush.Color)"
Storyboard.TargetName="rect"
/>
</Storyboard>
</VisualState>
<VisualState x:Name="Some1Selected">
<Storyboard RepeatBehavior="Forever">
<ColorAnimationUsingKeyFrames Storyboard.TargetName="rect" Storyboard.TargetProperty="(Rectangle.Fill).(SolidColorBrush.Color)" >
<LinearColorKeyFrame KeyTime="00:00:0" Value="Black"/>
<LinearColorKeyFrame KeyTime="00:00:0.8" Value="#FFBD00"/>
</ColorAnimationUsingKeyFrames>
</Storyboard>
</VisualState>
<VisualState x:Name="Some2Selected">
<Storyboard RepeatBehavior="Forever">
<ColorAnimationUsingKeyFrames Storyboard.TargetName="rect" Storyboard.TargetProperty="(Rectangle.Fill).(SolidColorBrush.Color)" >
<LinearColorKeyFrame KeyTime="00:00:0" Value="Black"/>
<LinearColorKeyFrame KeyTime="00:00:0.8" Value="#D95638"/>
</ColorAnimationUsingKeyFrames>
</Storyboard>
</VisualState>
<VisualState x:Name="Some3Selected">
<Storyboard RepeatBehavior="Forever">
<ColorAnimationUsingKeyFrames Storyboard.TargetName="rect" Storyboard.TargetProperty="(Rectangle.Fill).(SolidColorBrush.Color)" >
<LinearColorKeyFrame KeyTime="00:00:0" Value="Black"/>
<LinearColorKeyFrame KeyTime="00:00:0.8" Value="#bb33ee"/>
</ColorAnimationUsingKeyFrames>
</Storyboard>
</VisualState>
<VisualState x:Name="Some4Selected">
<Storyboard RepeatBehavior="Forever">
<ColorAnimationUsingKeyFrames Storyboard.TargetName="rect" Storyboard.TargetProperty="(Rectangle.Fill).(SolidColorBrush.Color)" >
<LinearColorKeyFrame KeyTime="00:00:0" Value="Black"/>
<LinearColorKeyFrame KeyTime="00:00:0.8" Value="#B8BF9D"/>
</ColorAnimationUsingKeyFrames>
</Storyboard>
</VisualState>
<VisualState x:Name="Some5Selected">
<Storyboard RepeatBehavior="Forever">
<ColorAnimationUsingKeyFrames Storyboard.TargetName="rect" Storyboard.TargetProperty="(Rectangle.Fill).(SolidColorBrush.Color)" >
<LinearColorKeyFrame KeyTime="00:00:0" Value="Black"/>
<LinearColorKeyFrame KeyTime="00:00:0.8" Value="#3399dd"/>
</ColorAnimationUsingKeyFrames>
</Storyboard>
</VisualState>
<VisualState x:Name="Some6Selected">
<Storyboard RepeatBehavior="Forever">
<ColorAnimationUsingKeyFrames Storyboard.TargetName="rect" Storyboard.TargetProperty="(Rectangle.Fill).(SolidColorBrush.Color)" >
<LinearColorKeyFrame KeyTime="00:00:0" Value="Black"/>
<LinearColorKeyFrame KeyTime="00:00:0.8" Value="#337722"/>
</ColorAnimationUsingKeyFrames>
</Storyboard>
</VisualState>
<VisualState x:Name="ValidDestinationForSelected">
<Storyboard>
<DoubleAnimation From="0" To="3" Duration="0" Storyboard.TargetName="rect" Storyboard.TargetProperty="StrokeThickness"/>
<ColorAnimationUsingKeyFrames Storyboard.TargetName="rect" Storyboard.TargetProperty="(Rectangle.Stroke).(SolidColorBrush.Color)" >
<LinearColorKeyFrame KeyTime="00:00:0" Value="Black"/>
<LinearColorKeyFrame KeyTime="00:00:0.8" Value="Aquamarine"/>
</ColorAnimationUsingKeyFrames>
</Storyboard>
</VisualState>
</VisualStateGroup>
</VisualStateManager.VisualStateGroups>
</Grid>
</ControlTemplate>
</Setter.Value>
</Setter>
<Setter Property="FontSize" Value="16"/>
<Setter Property="FontFamily" Value="Consolas"/>
<Setter Property="Background" Value="Transparent"/>
<Setter Property="FontWeight" Value="ExtraBold"/>
<Setter Property="Foreground" Value="White"/>
</Style>
</phone:PhoneApplicationPage.Resources>
<!--LayoutRoot contains the root grid where all other page content is placed-->
<Grid x:Name="LayoutRoot" Background="Transparent">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<TextBlock
Style="{StaticResource PhoneTextTitle1Style}"
Foreground="#A6007900"
FontWeight="ExtraBlack"
FontStretch="UltraExpanded"
FontSize="48"
Grid.Row="0" Text="InLine"/>
<!--TitlePanel contains the name of the application and page title-->
<StackPanel Orientation="Horizontal" Grid.Row="1">
<TextBlock VerticalAlignment="Center" Text="Source Control Incoming: " />
<Button Style="{StaticResource TextButton}" Content="{Binding Path=NextItems[0].Content}" Height="80" Width="80" Name="b1">
</Button>
<Button Style="{StaticResource TextButton}" Content="{Binding Path=NextItems[1].Content}" Height="80" Width="80" Name="b2">
</Button>
<Button Style="{StaticResource TextButton}" Content="{Binding Path=NextItems[2].Content}" Height="80" Width="80" Name="b3">
</Button>
</StackPanel>
<Grid Margin="0,15,0,0" x:Name="ContentGameGrid" Grid.Row="2">
</Grid>
<!--ContentPanel - place additional content here-->
<Grid x:Name="ContentGrid" Grid.Row="3">
<TextBlock FontSize="32" x:Name="result" Text="{Binding Result}"/>
</Grid>
</Grid>
</phone:PhoneApplicationPage>