summaryrefslogtreecommitdiff
path: root/cpp/test/uwp/MainPage.xaml
blob: f8eda9b24b4600f63532229b62340cb6a208b9fb (plain)
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
<Page
    x:Class="TestSuite.MainPage"
    IsTabStop="false"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:TestSuite"
    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="*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <StackPanel Grid.Row="0">
            <TextBlock Text="ZeroC - Ice Test Suite" 
                       Style="{StaticResource TitleStyle}" 
                       Margin="5" 
                       VerticalAlignment="Bottom" TextWrapping="Wrap"/>
        </StackPanel>
        <Hub Grid.Row="1" 
             Grid.Column="0" 
             Margin="0" 
             Padding="0">
            <HubSection Width="300"  
                        VerticalContentAlignment="Stretch" 
                        HorizontalContentAlignment="Stretch" 
                        Padding="10"
                        Loaded="Tests_Loaded">
                <DataTemplate>
                    <Grid>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="*"/>
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="*"/>
                        </Grid.ColumnDefinitions>
                        <ListBox Grid.Row="0"
                                 Grid.Column="0"
                                 x:Name="ListBox"
                                 Background="LightGray"></ListBox>
                    </Grid>
                </DataTemplate>
            </HubSection>

            <HubSection Width="300"
                        Padding="5"
                        VerticalContentAlignment="Stretch"
                        HorizontalContentAlignment="Stretch"
                        Loaded="Configuration_Loaded">
                <DataTemplate>
                    <Grid>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="*"/>
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="*"/>
                        </Grid.ColumnDefinitions>
                        <StackPanel
                            Grid.Row="0" 
                            Grid.Column="0" 
                            VerticalAlignment="Stretch" 
                            HorizontalAlignment="Stretch">
                            <TextBlock Margin="5" 
                                       Text="Server" 
                                       Style="{StaticResource BasicTextStyle}" 
                                       FontSize="16"/>
                            <ComboBox Margin="5"
                                      x:Name="Language"
                                      SelectedIndex="0"
                                      SelectionChanged="Language_SelectionChanged">
                                <ComboBoxItem Name="winrt">winrt</ComboBoxItem>
                                <ComboBoxItem Name="cpp">C++</ComboBoxItem>
                                <ComboBoxItem Name="csharp">C#</ComboBoxItem>
                                <ComboBoxItem Name="java">Java</ComboBoxItem>
                            </ComboBox>
                            <TextBlock Margin="5" 
                                       Text="Host"
                                       Style="{StaticResource BasicTextStyle}"
                                       FontSize="16"/>
                            <TextBox Padding="10"
                                     x:Name="Host"
                                     Text="127.0.0.1"
                                     FontSize="16"/>
                            <TextBlock Margin="5" 
                                       Text="Protocol"
                                       FontSize="16"/>
                            <ComboBox Margin="5" 
                                      x:Name="Protocol"
                                      SelectedIndex="0">
                                <ComboBoxItem Name="tcp">tcp</ComboBoxItem>
                                <ComboBoxItem Name="ssl">ssl</ComboBoxItem>
                                <ComboBoxItem Name="ws">ws</ComboBoxItem>
                                <ComboBoxItem Name="wss">wss</ComboBoxItem>
                            </ComboBox>
                            <CheckBox Margin="5" 
                                      x:Name="Loop" 
                                      Content="Run In A Loop"
                                      FontSize="16"/>
                            <CheckBox Margin="5" 
                                      x:Name="Serialize"
                                      Content="Enable Serialize Mode"
                                      FontSize="16"/>
                            <CheckBox Margin="5"
                                      x:Name="IPv6"
                                      Content="Use IPv6"
                                      FontSize="16"/>
                            <Button Margin="5" 
                                    x:Name="Run"
                                    Content="Run"
                                    Click="btnRun_Click"
                                    HorizontalAlignment="Stretch"
                                    FontSize="16"/>
                            <Button Margin="5" 
                                    x:Name="Stop"
                                    Content="Stop"
                                    Click="btnStop_Click"
                                    HorizontalAlignment="Stretch"
                                    FontSize="16"/>
                        </StackPanel>
                    </Grid>
                </DataTemplate>
            </HubSection>
            <HubSection Width="800" 
                        VerticalContentAlignment="Stretch" 
                        HorizontalContentAlignment="Stretch"
                        Padding="10"
                        Loaded="Output_Loaded">
                <DataTemplate>
                    <Grid>
                        <Grid.RowDefinitions>
                            <RowDefinition Height="*"/>
                        </Grid.RowDefinitions>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="*"/>
                        </Grid.ColumnDefinitions>
                        <ListBox Grid.Row="0" 
                                 Grid.Column="0" 
                                 x:Name="Output"
                                 Background="LightGray"></ListBox>
                    </Grid>
                </DataTemplate>
            </HubSection>
        </Hub>
        <StackPanel Grid.Row="2" VerticalAlignment="Bottom">
            <TextBlock Text="Copyright (c) 2003-2015 ZeroC, Inc. All rights reserved." 
                       Style="{StaticResource FooterStyle}"
                       Margin="5"
                       TextWrapping="Wrap"/>
        </StackPanel>
    </Grid>
</Page>