|
| 1 | +<UserControl x:Class="GUI_v2.View.StatusView.IMUSettings" |
| 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:GUI_v2.View.StatusView" |
| 7 | + mc:Ignorable="d" |
| 8 | + d:DesignHeight="450" d:DesignWidth="800"> |
| 9 | + <UserControl.Resources> |
| 10 | + <ResourceDictionary> |
| 11 | + <ResourceDictionary.MergedDictionaries> |
| 12 | + <ResourceDictionary Source="StatusPageStyle.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 | + </Grid.RowDefinitions> |
| 23 | + <Label Content="IMU settings" FontSize="{StaticResource HeaderFontSize}"/> |
| 24 | + <Grid Grid.Row="1" Background="{StaticResource OnBackgroundBrush}" Margin="5"> |
| 25 | + <Grid.ColumnDefinitions> |
| 26 | + <ColumnDefinition Width="150"/> |
| 27 | + <ColumnDefinition Width="*"/> |
| 28 | + <ColumnDefinition Width="*"/> |
| 29 | + <ColumnDefinition Width="*"/> |
| 30 | + <ColumnDefinition Width="*"/> |
| 31 | + |
| 32 | + </Grid.ColumnDefinitions> |
| 33 | + <Label Content="Level" FontWeight="Bold" FontSize="{StaticResource FontSize}"/> |
| 34 | + <Grid Grid.Column="1"> |
| 35 | + <Grid.ColumnDefinitions> |
| 36 | + <ColumnDefinition Width="Auto"/> |
| 37 | + <ColumnDefinition Width="100"/> |
| 38 | + </Grid.ColumnDefinitions> |
| 39 | + <Label Content="Roll:" FontSize="{StaticResource FontSize}"/> |
| 40 | + <TextBox Grid.Column="1" Margin="20 5"/> |
| 41 | + </Grid> |
| 42 | + <Grid Grid.Column="2"> |
| 43 | + <Grid.ColumnDefinitions> |
| 44 | + <ColumnDefinition Width="Auto"/> |
| 45 | + <ColumnDefinition Width="100"/> |
| 46 | + </Grid.ColumnDefinitions> |
| 47 | + <Label Content="Pitch:" FontSize="{StaticResource FontSize}"/> |
| 48 | + <TextBox Grid.Column="1" Margin="20 5"/> |
| 49 | + </Grid> |
| 50 | + |
| 51 | + <Button Content="set" Grid.Column="3" Margin="20 5"/> |
| 52 | + <Button Content="set current" Grid.Column="4" Margin="20 5"/> |
| 53 | + </Grid> |
| 54 | + <Grid Grid.Row="2"> |
| 55 | + <Grid> |
| 56 | + <Grid.ColumnDefinitions> |
| 57 | + <ColumnDefinition Width="150"/> |
| 58 | + <ColumnDefinition Width="*"/> |
| 59 | + <ColumnDefinition Width="*"/> |
| 60 | + <ColumnDefinition Width="*"/> |
| 61 | + </Grid.ColumnDefinitions> |
| 62 | + <Label Content="Magnetometer" FontSize="{StaticResource FontSize}" FontWeight="Bold"/> |
| 63 | + <RadioButton Grid.Column="1" Content="Enabled" IsChecked="True" FontSize="{StaticResource FontSize}" |
| 64 | + Foreground="{StaticResource ForegroundBrush}" |
| 65 | + VerticalAlignment="Center" |
| 66 | + HorizontalAlignment="Center"/> |
| 67 | + <RadioButton Grid.Column="2" Content="Disabled" FontSize="{StaticResource FontSize}" |
| 68 | + Foreground="{StaticResource ForegroundBrush}" |
| 69 | + VerticalAlignment="Center" |
| 70 | + HorizontalAlignment="Center"/> |
| 71 | + <Button Grid.Column="3" Content="set" Margin="25 5"/> |
| 72 | + </Grid> |
| 73 | + </Grid> |
| 74 | + </Grid> |
| 75 | +</UserControl> |
| 76 | + |
| 77 | + |
0 commit comments