forked from Azure/azure-iot-sdk-csharp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMainPage.xaml
40 lines (32 loc) · 2.68 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
<Page
x:Class="Microsoft.Azure.Devices.Client.Samples.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:Microsoft.Azure.Devices.Client.Samples"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d" >
<Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}" Margin="10">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="360" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="48" />
<RowDefinition Height="48" />
<RowDefinition Height="196" />
<RowDefinition Height="196" />
<RowDefinition Height="196" />
</Grid.RowDefinitions>
<TextBlock Grid.Row="0" Grid.Column="0" HorizontalAlignment="Left" TextWrapping="Wrap" Text="Protocol:" VerticalAlignment="Top"/>
<ComboBox x:Name="protocolComboBox" Grid.Row="0" Grid.Column="1" HorizontalAlignment="Left" VerticalAlignment="Top" Width="220" SelectionChanged="OnProtocolSelectionChanged" />
<Button x:Name="sendButton" Grid.Row="1" Grid.Column="0" Width="240" Content="Send message:" HorizontalAlignment="Left" VerticalAlignment="Top" Click="sendButton_Click"/>
<TextBox x:Name="messageText" Grid.Row="1" Grid.Column="1" HorizontalAlignment="Left" TextWrapping="Wrap" Text="" Width="220" VerticalAlignment="Top"/>
<Button x:Name="receiveButton" Grid.Row="2" Grid.Column="0" Width="240" Content="Receive message" HorizontalAlignment="Left" VerticalAlignment="Top" Click="receiveButton_Click" />
<ListBox x:Name="messageList" Grid.Row="2" Grid.Column="1" HorizontalAlignment="Left" Height="Auto" Margin="0" VerticalAlignment="Top" BorderThickness="0"/>
<TextBlock Grid.Row="3" Grid.Column="0" HorizontalAlignment="Left" TextWrapping="Wrap" Text="Method `immediateReboot` log" VerticalAlignment="Top"/>
<ListBox x:Name="methodCallList" Grid.Row="3" Grid.Column="1" HorizontalAlignment="Left" Height="Auto" Margin="0" VerticalAlignment="Top" BorderThickness="0"/>
<TextBlock Grid.Row="4" Grid.Column="0" HorizontalAlignment="Left" TextWrapping="Wrap" Text="Method `GetDeviceName` log" VerticalAlignment="Top"/>
<ListBox x:Name="getDeviceNameList" Grid.Row="4" Grid.Column="1" HorizontalAlignment="Left" Height="Auto" Margin="0" VerticalAlignment="Top" BorderThickness="0"/>
</Grid>
</Page>