-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainPage.xaml
90 lines (89 loc) · 3.27 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
<Page
x:Class="AsyncVoid.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:AsyncVoid"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d">
<Grid Background="{StaticResource ApplicationPageBackgroundThemeBrush}">
<Grid.RowDefinitions>
<RowDefinition Height="auto" />
<RowDefinition Height="auto" />
<RowDefinition Height="auto" />
<RowDefinition Height="*" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*" />
<ColumnDefinition Width="auto" />
<ColumnDefinition Width="*" />
<ColumnDefinition Width="auto" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Button Content="Test Command"
FontSize="32"
Padding="20"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
Click="OnTestCommand"
Grid.ColumnSpan="5"
/>
<ProgressBar Grid.Row="1"
Grid.ColumnSpan="5"
Height="50"
Value="{Binding Progress}"
/>
<TextBox Grid.Row="2"
FontSize="48"
Padding="25"
Margin="40"
TextAlignment="Right"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
Background="{Binding LeftBackground}"
Text="{Binding LeftOperand}"
/>
<TextBlock Grid.Row="2"
Grid.Column="1"
FontSize="48"
Padding="25"
Margin="40"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
Text="+" />
<TextBox Grid.Row="2"
Grid.Column="2"
FontSize="48"
Padding="25"
Margin="40"
TextAlignment="Right"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
Background="{Binding RightBackground}"
Text="{Binding RightOperand}"
/>
<TextBlock Grid.Row="2"
TextAlignment="Right"
Grid.Column="3"
FontSize="48"
Padding="25"
Margin="40"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
Text="=" />
<TextBox Grid.Row="2"
Grid.Column="4"
FontSize="48"
Padding="25"
Margin="40"
Background="{Binding AnswerBackground}"
HorizontalAlignment="Stretch"
TextAlignment="Right"
VerticalAlignment="Stretch"
Text="{Binding Answer}"
/>
<ListBox Grid.Row="3"
Grid.ColumnSpan="5"
ItemsSource="{Binding Messages}"/>
</Grid>
</Page>