chr
2026-04-08 53e656200368a983e563550e2cc1acbc6d86b729
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<UserControl x:Class="OpenTapEditor.SequencePanel"
             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:local="clr-namespace:OpenTapEditor"
             xmlns:ui="clr-namespace:UILib;assembly=UILib"
             mc:Ignorable="d"
             x:Name="self"
             d:DesignHeight="800" d:DesignWidth="1200">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="8*"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="7*"/>
            <ColumnDefinition Width="3*"/>
        </Grid.ColumnDefinitions>
 
        <Grid Grid.Row="0" Grid.Column="0">
            <Grid.RowDefinitions>
                <RowDefinition Height="7*"/>
                <RowDefinition Height="3*"/>
            </Grid.RowDefinitions>
 
            <GroupBox Header="测试步骤" Grid.Row="0" Grid.RowSpan="2" Margin="5">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition/>
                    </Grid.RowDefinitions>
                    <StackPanel Orientation="Horizontal">
                        <Button Click="Button_Click" IsEnabled="{Binding IsRunning,ElementName=self,Converter={x:Static ui:ReverseBoolConverter.Instance}}" 
            Content="运行"/>
                        <Button Click="Button_Click" IsEnabled="{Binding IsRunning,ElementName=self}" Content="停止"/>
                    </StackPanel>
                    <local:StepTree Grid.Row="1" x:Name="treeView"
                SelectedItemChanged="treeView_SelectedItemChanged"></local:StepTree>
                </Grid>
            </GroupBox>
 
            <!--<GridSplitter Grid.Row="1" HorizontalAlignment="Stretch"  VerticalAlignment="Top" Height="5"/>
            <local:LogControl Grid.Row="1" Margin="0,5,0,0" x:Name="logControl"/>-->
        </Grid>
 
        <GridSplitter Grid.Row="0" Grid.Column="1" Width="5" HorizontalAlignment="Left"/>
 
        <Grid Grid.Row="0" Grid.Column="1">
            <Grid.RowDefinitions>
                <RowDefinition/>
                <RowDefinition/>
            </Grid.RowDefinitions>
            <GroupBox Header="单步设置" Grid.Row="0" Grid.Column="1" Margin="5">
                <local:StepSettingView  x:Name="settingView"/>
            </GroupBox>
 
            <local:VariablesControl
                SelectedSequenceChanged="variableControl_SelectedSequenceChanged"
                Grid.Row="1" Grid.Column="1" x:Name="variableControl"/>
        </Grid>
 
        <local:BreakConditionCtrl Grid.Row="1" Grid.Column="1" x:Name="bcSetting"/>
    </Grid>
</UserControl>