From 2e889843b4c171f2d6ad8e0d53084040703d11f6 Mon Sep 17 00:00:00 2001
From: wenxiangchao <wenxiangchao@ihengxin.com.cn>
Date: 星期一, 09 十一月 2026 13:18:21 +0800
Subject: [PATCH] docs: CAN 总线级应答器 + 硬件调试页多标签多会话 设计规格

---
 WPFProject/Controls/MainTabControl.xaml |   48 ++++++++++++++++++++++++++++++++++++++++--------
 1 files changed, 40 insertions(+), 8 deletions(-)

diff --git a/WPFProject/Controls/MainTabControl.xaml b/WPFProject/Controls/MainTabControl.xaml
index 2950b42..d48c9c8 100644
--- a/WPFProject/Controls/MainTabControl.xaml
+++ b/WPFProject/Controls/MainTabControl.xaml
@@ -159,7 +159,7 @@
             <DockPanel Background="Transparent">
                 <Border DockPanel.Dock="Left" BorderThickness="1,1,0,1" Background="Transparent" BorderBrush="{StaticResource PrimaryColor}" Width="50"></Border>
                 <ListBox DockPanel.Dock="Left" Grid.Row="0" x:Name="Menu"
- Style="{StaticResource ListBoxItemStyle1}" FontSize="16"
+ Style="{StaticResource ListBoxItemStyle1}" FontSize="14"
  BorderBrush="{StaticResource PrimaryColor}"
  BorderThickness="1"
  SelectionChanged="Menu_SelectionChanged"
@@ -180,19 +180,51 @@
          Style="{StaticResource ListBoxItemStyle2}"
          BorderBrush="Gray"
                  Visibility="{Binding MenuVisibility}"
-                 SelectedItem="{Binding SelectedSubMenu}" AlternationCount="{Binding SubMenuItems.Count}"
-                 SelectionChanged="SubMenu_SelectionChanged"
-BorderThickness="0" ItemsSource="{Binding SubMenuItems}" >
+                 SelectedItem="{Binding SelectedSubMenu,Mode=OneWay}" AlternationCount="{Binding SubMenuItems.Count}"
+                 SelectionChanged="SubMenu_SelectionChanged" BorderThickness="0" ItemsSource="{Binding SubMenuItems}" >
                 </ListBox>
             </DockPanel>
         </Border>
 
-
-
-
-
         <Border x:Name="page"  Grid.Row="2" BorderThickness="0" Margin="0" Background="White" Padding="0">
 
         </Border>
+
+        <Border Height="80" Grid.Row="2" Background="Red" Visibility="Collapsed" VerticalAlignment="Top" x:Name="alarmBorder">
+            <Border.Style>
+                <Style TargetType="Border">
+                    <Style.Triggers>
+                        <Trigger Property="Visibility" Value="Visible">
+                            <Trigger.EnterActions>
+                                <BeginStoryboard>
+                                    <Storyboard>
+                                        <ColorAnimation Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)"
+                    From="#ff2100" 
+                    To="#fe7975" 
+                    Duration="0:0:0.7"
+                    AutoReverse="True"
+                    RepeatBehavior="Forever"/>
+                                    </Storyboard>
+                                </BeginStoryboard>
+                            </Trigger.EnterActions>
+                        </Trigger>
+                    </Style.Triggers>
+                </Style>
+            </Border.Style>
+
+            <DockPanel>
+                <Button DockPanel.Dock="Right" 
+                FontSize="25" 
+                FontWeight="Bold"
+                Margin="0,10,10,0"
+                VerticalAlignment="Top"
+                Click="Button_Click_1"
+                FontFamily="{StaticResource iconfont}" Background="Transparent" Content="&#xe609;"/>
+
+                <Label Margin="10,0,0,0" FontSize="25" FontWeight="Bold" 
+               VerticalAlignment="Center" Content="{Binding AlarmInfo}"/>
+
+            </DockPanel>
+        </Border>
     </Grid>
 </UserControl>

--
Gitblit v1.9.1