增加摄像头中控台项目

This commit is contained in:
2025-12-30 10:53:02 +08:00
parent 471b8c50b6
commit de3adf0339
31 changed files with 2736 additions and 0 deletions

View File

@@ -0,0 +1,67 @@
<UserControl
x:Class="SHH.CameraDashboard.BottomDockControl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:SHH.CameraDashboard.Controls">
<Grid VerticalAlignment="Bottom">
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="30" />
</Grid.RowDefinitions>
<Border
x:Name="ExpandedPanel"
Grid.Row="0"
Height="250"
Background="{DynamicResource Brush.Bg.Panel}"
BorderBrush="{DynamicResource Brush.Border}"
BorderThickness="0,1,0,0"
Visibility="Collapsed">
<local:DiagnosticControl x:Name="WebApiDiag" />
</Border>
<Border
Grid.Row="1"
Background="{DynamicResource Brush.Brand}"
BorderBrush="{DynamicResource Brush.Border}"
BorderThickness="0,1,0,0"
Cursor="Hand"
MouseLeftButtonDown="TogglePanel_Click">
<DockPanel Margin="10,0" LastChildFill="False">
<TextBlock
x:Name="LatestLogText"
VerticalAlignment="Center"
FontSize="11"
Foreground="White"
Text="准备就绪" />
<TextBlock
x:Name="ArrowIcon"
Margin="10,0,0,0"
VerticalAlignment="Center"
DockPanel.Dock="Right"
Foreground="White"
Text="▲" />
<StackPanel
VerticalAlignment="Center"
DockPanel.Dock="Right"
Orientation="Horizontal">
<TextBlock
Margin="0,0,5,0"
FontSize="10"
Foreground="#EEE"
Opacity="0.7"
Text="API Latency:" />
<TextBlock
x:Name="LatencyText"
FontSize="10"
FontWeight="Bold"
Foreground="White"
Text="0ms" />
</StackPanel>
</DockPanel>
</Border>
</Grid>
</UserControl>