| | |
| | | <UserControl x:Class="Util.SB.ManualDebug" |
| | | <UserControl x:Class="Util.ManualDebug.ManualDebug" |
| | | xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" |
| | | xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" |
| | | xmlns:d="http://schemas.microsoft.com/expression/blend/2008" |
| | | xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" |
| | | xmlns:local="clr-namespace:Util.SB" |
| | | xmlns:local="clr-namespace:Util.ManualDebug" |
| | | xmlns:dp="clr-namespace:HMI.UI.DpUtil;assembly=HMI.UI" |
| | | mc:Ignorable="d" |
| | | x:Name="self" |
| | | MinHeight="400" MinWidth="500"> |
| | |
| | | </UserControl.Resources> |
| | | |
| | | <Grid> |
| | | <Grid.RowDefinitions> |
| | | <RowDefinition/> |
| | | <RowDefinition Height="Auto"/> |
| | | </Grid.RowDefinitions> |
| | | <Grid Margin="10"> |
| | | <Grid.ColumnDefinitions> |
| | | <ColumnDefinition Width="Auto"/> |
| | | <ColumnDefinition/> |
| | | </Grid.ColumnDefinitions> |
| | | |
| | | <Grid x:Name="CellSelectBorder"> |
| | | <Grid.RowDefinitions> |
| | | <RowDefinition/> |
| | | <RowDefinition/> |
| | | </Grid.RowDefinitions> |
| | | |
| | | <Border Background="{StaticResource TsPanelBrush}" Margin="0,0,10,5" |
| | | BorderBrush="{StaticResource BorderBrush}" |
| | | BorderThickness="1" CornerRadius="4" Padding="15"> |
| | | <StackPanel> |
| | | <TextBlock Text="穴位选择" FontSize="14" FontWeight="SemiBold" |
| | | Foreground="{StaticResource PrimaryBrush}" Margin="0,0,0,15"/> |
| | | |
| | | <UniformGrid IsEnabled="False" x:Name="CellGrid" dp:UniformGridHelper.InnerBorder="1" Columns="1" |
| | | dp:UniformGridHelper.InnerBorderBrush="{StaticResource BorderBrush}"> |
| | | |
| | | </UniformGrid> |
| | | </StackPanel> |
| | | </Border> |
| | | |
| | | <Border Grid.Row="1" Background="{StaticResource TsPanelBrush}" Margin="0,5,10,0" |
| | | BorderBrush="{StaticResource BorderBrush}" |
| | | BorderThickness="1" CornerRadius="4" Padding="15"> |
| | | <StackPanel> |
| | | <TextBlock Text="穴位测试结果" FontSize="14" FontWeight="SemiBold" |
| | | Foreground="{StaticResource PrimaryBrush}" Margin="0,0,0,15"/> |
| | | |
| | | <UniformGrid IsEnabled="False" x:Name="CellResultGrid" Columns="1" dp:UniformGridHelper.InnerBorder="1" |
| | | dp:UniformGridHelper.InnerBorderBrush="{StaticResource BorderBrush}"> |
| | | |
| | | </UniformGrid> |
| | | </StackPanel> |
| | | </Border> |
| | | </Grid> |
| | | |
| | | <Grid Grid.Column="1"> |
| | | <Grid.RowDefinitions> |
| | | <RowDefinition Height="Auto"/> |
| | | <RowDefinition Height="5"/> |
| | |
| | | </Grid> |
| | | </Border> |
| | | </Grid> |
| | | <Border Background="#AAFFFFFF" x:Name="mask"> |
| | | <Border Background="#AAFFFFFF" Grid.ColumnSpan="2" x:Name="mask"> |
| | | <TextBlock Text="初始化中..." |
| | | FontSize="16" FontWeight="Bold" Foreground="{StaticResource PrimaryBrush}" HorizontalAlignment="Center" VerticalAlignment="Center"/> |
| | | </Border> |
| | | </Grid> |
| | | |
| | | <StatusBar FontSize="14" Grid.Row="1"> |
| | | <StatusBar.ItemsPanel> |
| | | <ItemsPanelTemplate> |
| | | <DockPanel LastChildFill="False"/> |
| | | </ItemsPanelTemplate> |
| | | </StatusBar.ItemsPanel> |
| | | |
| | | <StatusBarItem DockPanel.Dock="Left"> |
| | | <StackPanel Orientation="Horizontal" dp:StackPanelHelper.ChildSpace="8"> |
| | | <StackPanel Orientation="Horizontal"> |
| | | <Ellipse Width="10" Height="10"> |
| | | <Ellipse.Style> |
| | | <Style TargetType="Ellipse"> |
| | | <Setter Property="Fill" Value="LightGray"/> |
| | | <Style.Triggers> |
| | | <DataTrigger Binding="{Binding TcpServerStatus,ElementName=self}" Value="ERROR"> |
| | | <Setter Property="Fill" Value="Red"/> |
| | | </DataTrigger> |
| | | <DataTrigger Binding="{Binding TcpServerStatus,ElementName=self}" Value="RUNNING"> |
| | | <Setter Property="Fill" Value="Green"/> |
| | | </DataTrigger> |
| | | </Style.Triggers> |
| | | </Style> |
| | | </Ellipse.Style> |
| | | </Ellipse> |
| | | <TextBlock Text="{Binding TcpServerInfo,ElementName=self}"/> |
| | | <Button Padding="0" Margin="0" BorderThickness="0" Click="Button_Click">🔄</Button> |
| | | </StackPanel> |
| | | </StackPanel> |
| | | </StatusBarItem> |
| | | </StatusBar> |
| | | </Grid> |
| | | </UserControl> |