Subversion Repositories Projects

Compare Revisions

Ignore whitespace Rev 2299 → Rev 2300

/MKLiveView/v1.0/Source/MainWindow.xaml
406,7 → 406,7
<Rectangle x:Name="rectTopVoltage" HorizontalAlignment="Left" Height="28" Stroke="#FFCFCECE" VerticalAlignment="Top" Width="89" StrokeThickness="3" Fill="#00000000"/>
<Rectangle Fill="#FFE8E8FF" HorizontalAlignment="Left" Height="13" Stroke="#FFCFCECE" VerticalAlignment="Top" Width="6" StrokeThickness="2" Canvas.Left="89" Canvas.Top="8"/>
<ProgressBar x:Name="pbTopVoltage" HorizontalAlignment="Left" Height="22" VerticalAlignment="Top" Width="83" Foreground="#FF6BC37B" FontSize="14" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" BorderBrush="{x:Null}" BorderThickness="0" Background="#00000000" ToolTip="Voltage of LiPo" Canvas.Left="3" Canvas.Top="3"/>
<TextBox x:Name="tbTopVoltage" HorizontalAlignment="Left" Height="25" TextWrapping="Wrap" Text="0 V" VerticalAlignment="Top" Width="76" BorderBrush="{x:Null}" FontSize="14" HorizontalContentAlignment="Center" Background="{x:Null}" Padding="1" Foreground="White" VerticalContentAlignment="Center" AllowDrop="False" Focusable="False" IsHitTestVisible="False" IsTabStop="False" IsUndoEnabled="False" IsReadOnly="True" Canvas.Left="7" Canvas.Top="1"/>
<TextBox x:Name="tbTopVoltage" HorizontalAlignment="Left" Height="25" TextWrapping="Wrap" Text="0 V" VerticalAlignment="Top" Width="76" BorderBrush="{x:Null}" FontSize="14" HorizontalContentAlignment="Center" Background="{x:Null}" Padding="1" Foreground="White" VerticalContentAlignment="Center" AllowDrop="False" Focusable="False" IsHitTestVisible="False" IsTabStop="False" IsUndoEnabled="False" IsReadOnly="True" Canvas.Left="7" Canvas.Top="1" ToolTip="Voltage of LiPo"/>
</Canvas>
<Canvas Margin="1,2,2,3" Width="94" Style="{StaticResource CanvasVisibility}" Tag="{Binding ElementName=chkBoxTopBarShowCapacity}">
<TextBox x:Name="tbTopCapacity" HorizontalAlignment="Left" Height="31" TextWrapping="Wrap" Text="0 mAh" VerticalAlignment="Top" Width="94" BorderBrush="#FFE4E4E4" FontSize="14" VerticalContentAlignment="Center" Background="#00000000" Padding="4,1,1,1" Foreground="White" ToolTip="capacity used" BorderThickness="0.5" AllowDrop="False" IsHitTestVisible="False" IsTabStop="False" IsReadOnly="True" IsUndoEnabled="False"/>
627,7 → 627,7
</Style>
</Label.Style>
</Label>
<TextBox x:Name="tbSideBarStatusMotors" HorizontalAlignment="Right" Height="21" Margin="0,9,1,0" TextWrapping="NoWrap" Text="M" VerticalAlignment="Top" Width="21" FontSize="14" BorderBrush="#FFD3D2D2" Background="Transparent" Foreground="#FFD3D2D2" HorizontalContentAlignment="Center" VerticalContentAlignment="Stretch" UndoLimit="0" AllowDrop="False" IsReadOnly="True" IsUndoEnabled="False" MaxLines="1" MinLines="1" MaxLength="1" ToolTip="Motors on/off">
<TextBox x:Name="tbSideBarStatusMotors" HorizontalAlignment="Right" Height="21" Margin="0,9,1,0" TextWrapping="NoWrap" Text="M" VerticalAlignment="Top" Width="21" FontSize="14" BorderBrush="#FFD3D2D2" Background="Transparent" Foreground="#FFD3D2D2" HorizontalContentAlignment="Center" VerticalContentAlignment="Stretch" UndoLimit="0" AllowDrop="False" IsReadOnly="True" IsUndoEnabled="False" MaxLines="1" MinLines="1" MaxLength="1" ToolTip="Motors on/off" FontWeight="Bold">
<TextBox.Resources>
<Style TargetType="{x:Type Border}">
<Setter Property="CornerRadius" Value="30"/>
634,10 → 634,10
</Style>
</TextBox.Resources>
</TextBox>
<TextBox x:Name="tbSideBarStatusPH" HorizontalAlignment="Left" Height="19" Margin="1,32,0,0" Text="PH" VerticalAlignment="Top" Width="21" Background="Transparent" Foreground="#FFD3D2D2" AllowDrop="False" BorderThickness="0.6" ToolTip="Position Hold / Coming Home" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" IsUndoEnabled="False" MaxLines="1" BorderBrush="#FFD3D2D2" UndoLimit="0"/>
<TextBox x:Name="tbSideBarStatusCF" HorizontalAlignment="Left" Height="19" Margin="1,53,0,0" Text="CF" VerticalAlignment="Top" Width="21" Background="Transparent" Foreground="#FFD3D2D2" AllowDrop="False" BorderThickness="0.6" ToolTip="Carefree" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" IsUndoEnabled="False" MaxLines="1" BorderBrush="#FFD3D2D2" UndoLimit="0"/>
<TextBox x:Name="tbSideBarStatusAC" HorizontalAlignment="Left" Height="19" Margin="1,74,0,0" Text="AC" VerticalAlignment="Top" Width="21" Background="Transparent" Foreground="#FFD3D2D2" AllowDrop="False" BorderThickness="0.6" ToolTip="Altitude control" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" IsUndoEnabled="False" MaxLines="1" BorderBrush="#FFD3D2D2" UndoLimit="0"/>
<TextBox x:Name="tbSideBarStatusEmergencyLanding" HorizontalAlignment="Left" Height="21" Margin="1,95,0,0" TextWrapping="NoWrap" Text="H" VerticalAlignment="Top" Width="21" FontSize="14" BorderBrush="#FFD3D2D2" Background="Transparent" Foreground="#FFD3D2D2" HorizontalContentAlignment="Center" VerticalContentAlignment="Stretch" UndoLimit="0" AllowDrop="False" IsReadOnly="True" IsUndoEnabled="False" MaxLines="1" MinLines="1" MaxLength="1" ToolTip="Emergency landing">
<TextBox x:Name="tbSideBarStatusPH" HorizontalAlignment="Left" Height="19" Margin="1,32,0,0" Text="PH" VerticalAlignment="Top" Width="21" Background="Transparent" Foreground="#FFD3D2D2" AllowDrop="False" BorderThickness="0.6" ToolTip="Position Hold / Coming Home" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" IsUndoEnabled="False" MaxLines="1" BorderBrush="#FFD3D2D2" UndoLimit="0" FontWeight="Bold"/>
<TextBox x:Name="tbSideBarStatusCF" HorizontalAlignment="Left" Height="19" Margin="1,53,0,0" Text="CF" VerticalAlignment="Top" Width="21" Background="Transparent" Foreground="#FFD3D2D2" AllowDrop="False" BorderThickness="0.6" ToolTip="Carefree" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" IsUndoEnabled="False" MaxLines="1" BorderBrush="#FFD3D2D2" UndoLimit="0" FontWeight="Bold"/>
<TextBox x:Name="tbSideBarStatusAC" HorizontalAlignment="Left" Height="19" Margin="1,74,0,0" Text="AC" VerticalAlignment="Top" Width="21" Background="Transparent" Foreground="#FFD3D2D2" AllowDrop="False" BorderThickness="0.6" ToolTip="Altitude control" HorizontalContentAlignment="Stretch" VerticalContentAlignment="Stretch" IsUndoEnabled="False" MaxLines="1" BorderBrush="#FFD3D2D2" UndoLimit="0" FontWeight="Bold"/>
<TextBox x:Name="tbSideBarStatusEmergencyLanding" HorizontalAlignment="Left" Height="21" Margin="1,95,0,0" TextWrapping="NoWrap" Text="H" VerticalAlignment="Top" Width="21" FontSize="14" BorderBrush="#FFD3D2D2" Background="Transparent" Foreground="#FFD3D2D2" HorizontalContentAlignment="Center" VerticalContentAlignment="Stretch" UndoLimit="0" AllowDrop="False" IsReadOnly="True" IsUndoEnabled="False" MaxLines="1" MinLines="1" MaxLength="1" ToolTip="Emergency landing" FontWeight="Bold">
<TextBox.Resources>
<Style TargetType="{x:Type Border}">
<Setter Property="CornerRadius" Value="30"/>
645,8 → 645,8
</TextBox.Resources>
</TextBox>
</Grid>
<Grid x:Name="GridData" Background="#7F000000" HorizontalAlignment="Left" Width="204" Margin="23,36,0,0" >
<TabControl x:Name="tabControl" HorizontalAlignment="Left" Height="619" VerticalAlignment="Top" Width="204" Background="{x:Null}">
<Grid x:Name="GridData" Background="#7F000000" HorizontalAlignment="Left" Width="204" Margin="23,36,0,0" Visibility="Collapsed" >
<TabControl x:Name="tabControl" HorizontalAlignment="Left" Height="619" VerticalAlignment="Top" Width="200" Background="{x:Null}" Margin="2,0,0,0">
<TabItem Header="Analog">
<Grid>
<TextBlock x:Name="tbVolt" HorizontalAlignment="Left" Height="23" Margin="110,42,0,0" TextWrapping="Wrap" Text="NA" VerticalAlignment="Top" Width="65" Foreground="White" FontSize="16"/>
724,11 → 724,11
</TabItem>
</TabControl>
</Grid>
<Grid x:Name="GridSettings" Background="#7B000000" HorizontalAlignment="Left" Width="233" Margin="23,36,0,0" Visibility="Collapsed">
<Grid x:Name="GridSettings" Background="#7B000000" HorizontalAlignment="Left" Width="233" Margin="23,36,0,0">
<TabControl x:Name="tabControlSettings" HorizontalAlignment="Left" Width="229" Background="{x:Null}" Margin="2,0,0,0">
<TabItem Header="General" Margin="0,0,-0.237,0">
<Grid x:Name="TabGridGeneral">
<local:SerialPortCtrl x:Name="serialPortCtrl" HorizontalAlignment="Left" Height="255" Margin="11,5,0,0" VerticalAlignment="Top" Width="210"/>
<local:SerialPortCtrl x:Name="serialPortCtrl" HorizontalAlignment="Left" Height="256" Margin="11,5,0,0" VerticalAlignment="Top" Width="210"/>
<GroupBox x:Name="groupBox" Header="timings autoupdate (ms)" HorizontalAlignment="Left" Height="129" Margin="10,278,0,0" VerticalAlignment="Top" Width="210" Foreground="White" BorderThickness="0.5,0.5,0.4,0.4" FontSize="14">
<Grid Margin="0,0,-12,-6">
<Label x:Name="label" Content="debug values" HorizontalAlignment="Left" Margin="4,13,0,0" VerticalAlignment="Top" Foreground="White" Padding="0"/>