forked from PeterWaher/IoTGateway
-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainPage.xaml
67 lines (66 loc) · 2.34 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
<Page
x:Class="Waher.Service.GPIO.MainPage"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="using:Waher.Service.GPIO"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
mc:Ignorable="d" Unloaded="Page_Unloaded">
<Pivot Title="GPIO/XMPP bridge" >
<PivotItem Header="Values">
<Grid Name="GpioGrid">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="100"/>
<ColumnDefinition Width="100"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition/>
</Grid.RowDefinitions>
<TextBlock Grid.Column="0" Grid.Row="0">GPIO</TextBlock>
<TextBlock Grid.Column="1" Grid.Row="0">Mode</TextBlock>
<TextBlock Grid.Column="2" Grid.Row="0">State</TextBlock>
</Grid>
</PivotItem>
<PivotItem Header="Events">
<ListView Name="EventsListView">
<ListView.ItemTemplate>
<DataTemplate>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="100"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<TextBlock Text="{Binding Time}" Grid.Column="0" />
<TextBlock Text="{Binding Message}" Grid.Column="1" />
</Grid>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</PivotItem>
<PivotItem Header="Sniffer">
<ListView Name="SnifferListView">
<ListView.ItemTemplate>
<DataTemplate>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="100"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<TextBlock Text="{Binding Time}" Grid.Column="0" />
<TextBlock Text="{Binding Message}" Grid.Column="1" />
</Grid>
</DataTemplate>
</ListView.ItemTemplate>
</ListView>
</PivotItem>
<PivotItem Header="Claim">
<StackPanel>
<TextBlock Text="Claimed by:" Margin="0,20,0,0" Name="OwnerLabel" Visibility="Collapsed"/>
<TextBlock FontSize="30" FontWeight="Bold" Name="Owner" Visibility="Collapsed" TextWrapping="Wrap"/>
<TextBlock Text="Claim with this QR Code:" Margin="0,20,0,0" Name="QrCodeLabel" Visibility="Collapsed"/>
<Image Name="QrCode" Stretch="None" Visibility="Collapsed"/>
</StackPanel>
</PivotItem>
</Pivot>
</Page>