wenxiangchao
4 天以前 559890c482f5973f06aafdfec9550fee5ba3c7f2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<UserControl x:Class="Plugin.DeviceDebug.Panels.CanDebugPanel"
             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" 
             mc:Ignorable="d" 
             d:DesignHeight="720" d:DesignWidth="720">
    <Grid Margin="6">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
 
        <!-- 通道工具条 -->
        <Border Grid.Row="0" Background="#F5F5F5" BorderBrush="#DDD" BorderThickness="0,0,0,1" Padding="6,4">
            <StackPanel Orientation="Horizontal">
                <Button x:Name="addChannelBtn" Content="+ 添加通道" Width="100" Height="26" Margin="0,0,6,0"
                        Click="AddChannelBtn_Click"
                        Background="#2196F3" Foreground="White" BorderThickness="0" Cursor="Hand" FontWeight="SemiBold"/>
                <Button x:Name="closeChannelBtn" Content="关闭当前通道" Width="110" Height="26"
                        Click="CloseChannelBtn_Click"
                        Background="#9E9E9E" Foreground="White" BorderThickness="0" Cursor="Hand"/>
            </StackPanel>
        </Border>
 
        <!-- 多通道标签页 -->
        <TabControl Grid.Row="1" x:Name="channelTabs" Background="White" BorderThickness="0"/>
    </Grid>
</UserControl>