alielie
2026-09-10 f3889f2d36c50cf99468594854def9b7ed069fb5
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
66
67
68
69
70
71
72
73
74
75
76
77
<Window x:Class="OpenTapEditor.AdapterSetting"
        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:OpenTapEditor"
        mc:Ignorable="d"
        xmlns:pu="https://opensource.panuon.com/wpf-ui"
        WindowStartupLocation="CenterOwner"
        Title="{DynamicResource 自定义测试步骤配置}" Height="450" Width="800">
 
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition/>
        </Grid.ColumnDefinitions>
 
        <GroupBox Header="{DynamicResource 通用}" Margin="5">
            <StackPanel>
                <pu:FormGroup x:Name="FgName" Header="{DynamicResource 名称}" Orientation="Horizontal" Margin="5"
                              Style="{StaticResource RequiredInputFormGroupStyle}"
                              GroupName="AdapterProp">
                    <TextBox Margin="5,0,0,0" Text="{Binding StepName}"/>
                </pu:FormGroup>
 
                <pu:FormGroup Grid.Row="1" Header="{DynamicResource 分组}" Orientation="Horizontal" Margin="5,0" GroupName="AdapterProp">
                    <!--<pu:SearchBox Margin="5,0,0,0" Text="{Binding StepGroup}"
                                  Opened="SearchBox_Opened"/>-->
                    <ComboBox Margin="5,0,0,0" IsEditable="True" Text="{Binding StepGroup}"
                              Loaded="ComboBox_Loaded"
                              GotFocus="ComboBox_GotFocus"
                              StaysOpenOnEdit="True"
                              ItemsSource="{Binding GroupSource}"/>
                </pu:FormGroup>
            </StackPanel>
        </GroupBox>
 
 
        <GroupBox Header="{Binding TypeName}" Grid.Row="2" Margin="5,0,5,5">
            <StackPanel x:Name="view"/>
        </GroupBox>
 
        <Border Grid.Row="3" Grid.ColumnSpan="2"
     Background="{StaticResource TsPanelBrush}"
     BorderBrush="{StaticResource BorderBrush}"
     BorderThickness="1"
     Padding="15,8">
            <StackPanel Orientation="Horizontal" 
             HorizontalAlignment="Right">
 
                <!-- 取消按钮 -->
                <Button x:Name="BtnCancel" 
             Content="{DynamicResource 取消}"
             Style="{StaticResource ActionButtonStyle}"
             Width="75"
             Margin="0,0,8,0"
             IsCancel="True"/>
 
                <!-- 确定按钮 -->
                <Button x:Name="BtnOK" 
             Content="{DynamicResource 保存}"
             Style="{StaticResource ActionButtonStyle}"
             Width="75"
             Background="{StaticResource PrimaryBrush}"
             Foreground="White"
             BorderBrush="{StaticResource PrimaryBrush}"
             IsCancel="False"
             Click="Button_Click"/>
            </StackPanel>
        </Border>
    </Grid>
</Window>