<hb:SimpleMaskControl x:Class="Plugin.DeviceDebug.DeviceDebug"
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
xmlns:hb="clr-namespace:HMI.Base;assembly=HMI.Base"
|
xmlns:ui="clr-namespace:HMI.UI;assembly=HMI.UI"
|
xmlns:pw="https://opensource.panuon.com/wpf"
|
xmlns:pu="https://opensource.panuon.com/wpf-ui"
|
xmlns:dp="clr-namespace:HMI.UI.DpUtil;assembly=HMI.UI"
|
xmlns:local="clr-namespace:Plugin.DeviceDebug"
|
mc:Ignorable="d"
|
Loaded="SimpleMaskControl_Loaded"
|
d:DesignHeight="600" d:DesignWidth="1000">
|
<hb:SimpleMaskControl.Resources>
|
<ResourceDictionary>
|
<ResourceDictionary.MergedDictionaries>
|
<ResourceDictionary Source="/HMI.UI;component/Style/PanuonListView.xaml"/>
|
</ResourceDictionary.MergedDictionaries>
|
<Style x:Key="TitleBox" TargetType="TextBlock">
|
<Setter Property="FontSize" Value="14"/>
|
<Setter Property="FontWeight" Value="SemiBold"/>
|
<Setter Property="Padding" Value="8,4"/>
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
</Style>
|
</ResourceDictionary>
|
</hb:SimpleMaskControl.Resources>
|
|
<Grid dp:GridHelper.Space="8">
|
<Grid.RowDefinitions>
|
<RowDefinition Height="Auto"/>
|
<RowDefinition Height="*"/>
|
</Grid.RowDefinitions>
|
|
<!-- 顶部:标题 + 设备选择 + 加入/关闭 -->
|
<DockPanel Grid.Row="0">
|
<StackPanel dp:StackPanelHelper.ChildSpace="10" DockPanel.Dock="Right" Orientation="Horizontal">
|
<ComboBox x:Name="deviceSelector" Width="240"
|
ItemsSource="{Binding DeviceList}"
|
SelectedItem="{Binding SelectedDevice}"
|
VerticalContentAlignment="Center" Padding="6,4"/>
|
<Button x:Name="addDeviceBtn" Content="加入调试" Width="90" Height="28"
|
Click="AddDeviceBtn_Click"
|
Background="#4CAF50" Foreground="White" BorderThickness="0" Cursor="Hand" FontWeight="SemiBold"/>
|
<Button x:Name="closeTabBtn" Content="关闭当前页" Width="100" Height="28"
|
Click="CloseTabBtn_Click"
|
Background="#FF5722" Foreground="White" BorderThickness="0" Cursor="Hand"/>
|
<Button Style="{StaticResource RfhBtn}" x:Name="rfhBtn" Click="RfhBtn_Click"/>
|
</StackPanel>
|
<TextBlock Style="{StaticResource TitleBox}" Text="硬件调试(可多设备并发)"/>
|
</DockPanel>
|
|
<!-- 多设备标签区 -->
|
<TabControl Grid.Row="1" x:Name="debugTabs" Background="White" BorderThickness="0"/>
|
</Grid>
|
</hb:SimpleMaskControl>
|