A UWP dashboard which provides live updates for the 'Personal Flash in Real-Time (Andy)' and 'Personal Flash in Real-Time (Tony)' artworks -- part of the 'Return to Ritherdon' project by Nicola Ellis. Documentation can be found at
https://git.abbether.net/return-to-ritherdon/rtr-docs/src/branch/master/eyes-and-ears
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
158 lines
8.0 KiB
158 lines
8.0 KiB
<Page |
|
x:Class="EyesAndEars.UWP.MainPage" |
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
|
xmlns:local="using:EyesAndEars.UWP" |
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
|
mc:Ignorable="d" |
|
Background="{ThemeResource ApplicationPageBackgroundThemeBrush}"> |
|
|
|
<Grid Margin="12"> |
|
|
|
<Grid.RowDefinitions> |
|
<RowDefinition Height="96"/> |
|
<RowDefinition Height="*"/> |
|
<RowDefinition Height="Auto"/> |
|
</Grid.RowDefinitions> |
|
|
|
<StackPanel Grid.Row="0" Orientation="Horizontal" |
|
VerticalAlignment="Top"> |
|
<Image Grid.Column="0" Width="88" Height="88" VerticalAlignment="Center" |
|
Source="Images\logo.png"/> |
|
<StackPanel Padding="8,0"> |
|
<TextBlock Text="Return to Ritheron Project" FontSize="40"/> |
|
<StackPanel Orientation="Horizontal"> |
|
<TextBlock Text="Unnamed Project" Padding="0" FontSize="24" |
|
VerticalAlignment="Bottom"/> |
|
<TextBlock Text="by Nicola Ellis" Padding="0" Margin="12,0" |
|
FontSize="18" VerticalAlignment="Bottom"/> |
|
</StackPanel> |
|
</StackPanel> |
|
</StackPanel> |
|
|
|
<Grid Grid.Row="1" Background="White" Margin="0,12"> |
|
|
|
<Grid.ColumnDefinitions> |
|
<ColumnDefinition Width="Auto"/> |
|
<ColumnDefinition Width="Auto"/> |
|
<ColumnDefinition Width="Auto"/> |
|
</Grid.ColumnDefinitions> |
|
|
|
<Grid.RowDefinitions> |
|
<RowDefinition Height="Auto"/> |
|
<RowDefinition Height="Auto"/> |
|
</Grid.RowDefinitions> |
|
|
|
<Grid x:Name="Factory1Grid" Grid.Row="0" Grid.Column="0" |
|
Background="DarkRed" Margin="0,0,0,12" Width="300" Height="300"> |
|
<StackPanel Margin="12" VerticalAlignment="Stretch"> |
|
<TextBlock x:Name="Factory1Time" Text="{x:Bind _vm.FactoryDevice1.LatestStatus.DateOfStatusRecording}" |
|
Foreground="White" FontSize="24"/> |
|
<TextBlock x:Name="Factory1Reading" Text="{x:Bind _vm.FactoryDevice1.LatestReading.Reading}" Foreground="White" |
|
VerticalAlignment="Bottom" FontSize="144"/> |
|
<TextBlock Text="Factory1" Foreground="White" FontSize="36" |
|
VerticalAlignment="Bottom"/> |
|
</StackPanel> |
|
</Grid> |
|
|
|
<Grid x:Name="Factory2Grid" Grid.Row="0" Grid.Column="1" |
|
Background="DarkRed" Margin="12,0,12,12" Width="300" Height="300"> |
|
<StackPanel Margin="12" VerticalAlignment="Stretch"> |
|
<TextBlock x:Name="Factory2Time" Text="2020-23-32 23:23" |
|
Foreground="White" FontSize="24"/> |
|
<TextBlock x:Name="Factory2Reading" Text="00" Foreground="White" |
|
VerticalAlignment="Bottom" FontSize="144"/> |
|
<TextBlock Text="Factory2" Foreground="White" FontSize="36" |
|
VerticalAlignment="Bottom"/> |
|
</StackPanel> |
|
</Grid> |
|
|
|
<Grid x:Name="Factory3Grid" Grid.Row="0" Grid.Column="2" |
|
Background="DarkRed" Margin="0,0,0,12" Width="300" Height="300"> |
|
<StackPanel Margin="12" VerticalAlignment="Stretch"> |
|
<TextBlock x:Name="Factory3Time" Text="2020-23-32 23:23" |
|
Foreground="White" FontSize="24"/> |
|
<TextBlock x:Name="Factory3Reading" Text="00" Foreground="White" |
|
VerticalAlignment="Bottom" FontSize="144"/> |
|
<TextBlock Text="Factory3" Foreground="White" FontSize="36" |
|
VerticalAlignment="Bottom"/> |
|
</StackPanel> |
|
</Grid> |
|
|
|
<Grid x:Name="Gallery1Grid" Grid.Row="1" Grid.Column="0" |
|
Background="DarkRed" Margin="0,0,0,12" Width="300" Height="150"> |
|
<StackPanel Margin="12" VerticalAlignment="Bottom"> |
|
<TextBlock x:Name="Gallery1Time" Text="2020-23-32 23:23" |
|
Foreground="White" FontSize="24"/> |
|
<TextBlock Text="Gallery1" Foreground="White" FontSize="36" |
|
VerticalAlignment="Bottom"/> |
|
</StackPanel> |
|
</Grid> |
|
|
|
<Grid x:Name="Gallery2Grid" Grid.Row="1" Grid.Column="1" |
|
Background="DarkRed" Margin="0,0,0,12" Width="300" Height="150"> |
|
<StackPanel Margin="12" VerticalAlignment="Bottom"> |
|
<TextBlock x:Name="Gallery2Time" Text="2020-23-32 23:23" |
|
Foreground="White" FontSize="24"/> |
|
<TextBlock Text="Gallery2" Foreground="White" FontSize="36" |
|
VerticalAlignment="Bottom"/> |
|
</StackPanel> |
|
</Grid> |
|
|
|
<Grid x:Name="Gallery3Grid" Grid.Row="1" Grid.Column="2" |
|
Background="DarkRed" Margin="0,0,0,12" Width="300" Height="150"> |
|
<StackPanel Margin="12" VerticalAlignment="Bottom"> |
|
<TextBlock x:Name="Gallery3Time" Text="2020-23-32 23:23" |
|
Foreground="White" FontSize="24"/> |
|
<TextBlock Text="Gallery3" Foreground="White" FontSize="36" |
|
VerticalAlignment="Bottom"/> |
|
</StackPanel> |
|
</Grid> |
|
|
|
</Grid> |
|
|
|
<Grid Grid.Row="2" Margin="0"> |
|
|
|
<Grid.ColumnDefinitions> |
|
<ColumnDefinition Width="Auto"/> |
|
<ColumnDefinition Width="*" MinWidth="350"/> |
|
<ColumnDefinition Width="Auto"/> |
|
</Grid.ColumnDefinitions> |
|
|
|
<HyperlinkButton x:Name="InfoButton" Grid.Column="0" |
|
NavigateUri="http://www.nicolaellis.com" |
|
FontFamily="Segoe MDL2 Assets" Content="" |
|
Height="79" Width="79" VerticalAlignment="Center" |
|
HorizontalAlignment="Left" FontSize="28" |
|
ToolTipService.Placement="Mouse" |
|
ToolTipService.ToolTip="This is a link to a webpage with information about Nicola and the project."/> |
|
|
|
<TextBox x:Name="WebAddressBox" Grid.Column="1" FontSize="26" |
|
Padding="20" Text="http://3.9.19.84" TextAlignment="Left" |
|
HorizontalAlignment="Stretch" TextWrapping="NoWrap" |
|
Margin="0" VerticalAlignment="Center" |
|
HorizontalContentAlignment="Left" |
|
ToolTipService.Placement="Mouse" |
|
ToolTipService.ToolTip="The base U.R.L. used to form the A.P.I. queries." |
|
PlaceholderText="Enter the base U.R.L. here..." /> |
|
|
|
<StackPanel Orientation="Horizontal" Grid.Column="2"> |
|
<Button x:Name="RefreshButton" FontFamily="Segoe MDL2 Assets" |
|
Content="" Height="79" Width="79" |
|
VerticalAlignment="Center" FontSize="28" |
|
Margin="0,0,12,0" ToolTipService.Placement="Mouse" |
|
Click="RefreshButton_Click" |
|
ToolTipService.ToolTip="Click after you change the base U.R.L. it will make the program use the new U.R.L."/> |
|
<Button x:Name="SaveURLButton" FontFamily="Segoe MDL2 Assets" |
|
Content="" Height="79" Width="79" |
|
VerticalAlignment="Center" FontSize="28" |
|
Click="SaveURLButton_Click" |
|
ToolTipService.Placement="Mouse" |
|
ToolTipService.ToolTip="Click to save the base U.R.L."/> |
|
</StackPanel> |
|
|
|
</Grid> |
|
|
|
</Grid> |
|
</Page>
|
|
|