|
| 1 | +<UserControl x:Class="Services.DialogServices.SettingsDialog.AppSettings" |
| 2 | + xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| 3 | + xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| 4 | + xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
| 5 | + xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
| 6 | + xmlns:local="clr-namespace:Services.DialogServices.SettingsDialog" |
| 7 | + mc:Ignorable="d" |
| 8 | + d:DesignHeight="450" d:DesignWidth="800"> |
| 9 | + <UserControl.Resources> |
| 10 | + <ResourceDictionary> |
| 11 | + <ResourceDictionary.MergedDictionaries> |
| 12 | + <ResourceDictionary Source="SettingsDialogStyle.xaml"/> |
| 13 | + </ResourceDictionary.MergedDictionaries> |
| 14 | + <BooleanToVisibilityConverter x:Key="VisibilityConverter"/> |
| 15 | + </ResourceDictionary> |
| 16 | + </UserControl.Resources> |
| 17 | + <Grid> |
| 18 | + <Grid.RowDefinitions> |
| 19 | + <RowDefinition Height="Auto"/> |
| 20 | + <RowDefinition Height="Auto"/> |
| 21 | + <RowDefinition Height="Auto"/> |
| 22 | + <RowDefinition Height="Auto"/> |
| 23 | + </Grid.RowDefinitions> |
| 24 | + <!--#region Network settings --> |
| 25 | + <Grid Background="{StaticResource OnBackgroundBrush}"> |
| 26 | + <Grid.RowDefinitions> |
| 27 | + <RowDefinition Height="Auto"/> |
| 28 | + <RowDefinition Height="Auto"/> |
| 29 | + </Grid.RowDefinitions> |
| 30 | + <Label Content="Network" FontSize="{StaticResource HeaderSize}" FontWeight="Bold"/> |
| 31 | + <StackPanel Orientation="Horizontal" Grid.Row="1" Margin="5" Background="{StaticResource SettingsDialogSurfaceBrush}"> |
| 32 | + <Label Content="IP: "/> |
| 33 | + <TextBox Width="120" Margin="0 5" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Text="{Binding JetsonIP}"/> |
| 34 | + <Label Content="control port: "/> |
| 35 | + <TextBox Width="60" Margin="0 5" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Text="{Binding ControlPort}"/> |
| 36 | + |
| 37 | + <Label Content="stream port: "/> |
| 38 | + <TextBox Width="60" Margin="0 5" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Text="{Binding VideoStreamPort}"/> |
| 39 | + </StackPanel> |
| 40 | + </Grid> |
| 41 | + <!--#endregion--> |
| 42 | + <!--#region BatterySettings --> |
| 43 | + <Grid Grid.Row="1" Background="{StaticResource OnBackgroundBrush}" Margin="0 5"> |
| 44 | + <Grid.RowDefinitions> |
| 45 | + <RowDefinition Height="Auto"/> |
| 46 | + <RowDefinition Height="Auto"/> |
| 47 | + </Grid.RowDefinitions> |
| 48 | + <Label Content="Battery" FontSize="{StaticResource HeaderSize}" FontWeight="Bold"/> |
| 49 | + <Grid Grid.Row="1" Margin="5"> |
| 50 | + <Grid.RowDefinitions> |
| 51 | + <RowDefinition Height="Auto"/> |
| 52 | + <RowDefinition Height="Auto"/> |
| 53 | + <RowDefinition Height="Auto"/> |
| 54 | + </Grid.RowDefinitions> |
| 55 | + <StackPanel Orientation="Horizontal" Grid.Row="0" Background="{StaticResource SurfaceBrush}"> |
| 56 | + <Label Content="Bat1: " FontWeight="Bold"/> |
| 57 | + <Label Content="Max: "/> |
| 58 | + <TextBox Width="60" Margin="0 5" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Text="{Binding Bat1.max}"/> |
| 59 | + <Label Content="Min: "/> |
| 60 | + <TextBox Width="60" Margin="0 5" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Text="{Binding Bat1.min}"/> |
| 61 | + <Label Content="Allert: "/> |
| 62 | + <TextBox Width="60" Margin="0 5" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Text="{Binding Bat1.allert}"/> |
| 63 | + </StackPanel> |
| 64 | + <StackPanel Orientation="Horizontal" Grid.Row="1" Background="{StaticResource SurfaceBrush}" Margin="0 5 0 0"> |
| 65 | + <Label Content="Bat2: " FontWeight="Bold"/> |
| 66 | + <Label Content="Max: "/> |
| 67 | + <TextBox Width="60" Margin="0 5" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Text="{Binding Bat2.max}"/> |
| 68 | + <Label Content="Min: "/> |
| 69 | + <TextBox Width="60" Margin="0 5" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Text="{Binding Bat2.min}"/> |
| 70 | + <Label Content="Allert: "/> |
| 71 | + <TextBox Width="60" Margin="0 5" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Text="{Binding Bat2.allert}"/> |
| 72 | + </StackPanel> |
| 73 | + </Grid> |
| 74 | + </Grid> |
| 75 | + <!--#endregion--> |
| 76 | + <!--#region Hummidity --> |
| 77 | + <Grid Grid.Row="2" Background="{StaticResource OnBackgroundBrush}" Margin="0 5"> |
| 78 | + <Grid.RowDefinitions> |
| 79 | + <RowDefinition Height="Auto"/> |
| 80 | + <RowDefinition Height="Auto"/> |
| 81 | + </Grid.RowDefinitions> |
| 82 | + <Label Content="Hummidity" FontSize="{StaticResource HeaderSize}" FontWeight="Bold"/> |
| 83 | + <Grid Grid.Row="1" Margin="5"> |
| 84 | + <StackPanel Orientation="Horizontal" Background="{StaticResource SurfaceBrush}"> |
| 85 | + <Label Content="Allert: "/> |
| 86 | + <TextBox Text="0" Width="60" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" Margin="5"/> |
| 87 | + </StackPanel> |
| 88 | + </Grid> |
| 89 | + |
| 90 | + </Grid> |
| 91 | + <!--#endregion--> |
| 92 | + </Grid> |
| 93 | + |
| 94 | +</UserControl> |
0 commit comments