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
<UserControl x:Class="OpenTapEditor.ChildSeqPanel"
             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.UI"
             mc:Ignorable="d" 
             xmlns:ui="clr-namespace:UILib;assembly=UILib"
             d:DesignHeight="450" d:DesignWidth="800">
    <Border Grid.Column="0" Background="White"
BorderBrush="{StaticResource BorderDarkBrush}" BorderThickness="1">
        <Grid>
            <Grid.RowDefinitions>
                <RowDefinition Height="26"/>
                <RowDefinition Height="*"/>
                <RowDefinition Height="Auto"/>
            </Grid.RowDefinitions>
 
            <Border Grid.Row="0" Background="#E8E8E8"
        BorderBrush="{StaticResource BorderBrush}" BorderThickness="0,0,0,1">
                <Grid Margin="4,0">
                    <TextBlock Text="{DynamicResource 子序列}" FontWeight="Bold" FontSize="11"
                   VerticalAlignment="Center"/>
                </Grid>
            </Border>
 
            <ListView Grid.Row="1" BorderThickness="0" ItemsSource="{Binding Sequences}"
          SelectedItem="{Binding SelectedSequence}">
                <ListView.ContextMenu>
                    <ContextMenu>
                        <MenuItem Header="{DynamicResource 添加子序列}" Tag="添加"  Click="MenuItem_Click"/>
                        <MenuItem Header="{DynamicResource 删除子序列}" Tag="删除" Click="MenuItem_Click"/>
                    </ContextMenu>
                </ListView.ContextMenu>
                <ListView.ItemTemplate>
                    <DataTemplate>
                        <ui:EditBox PreSubmit="SequenceNamePreSubmit"
                        Submited="SequenceNameSubmited"
                        Value="{Binding SequenceName,Mode=TwoWay}"/>
                    </DataTemplate>
                </ListView.ItemTemplate>
            </ListView>
 
            <!-- 操作按钮栏 -->
            <!--<Border Grid.Row="3" Background="#E8E8E8"
        BorderBrush="{StaticResource BorderBrush}" BorderThickness="0,1,0,0">
                <StackPanel Orientation="Horizontal" Margin="4,0">
                    <Button Style="{StaticResource ActionButtonStyle}">
                        <StackPanel Orientation="Horizontal">
                            <TextBlock Text="➕" Margin="0,0,4,0"/>
                            <TextBlock Text="添加"/>
                        </StackPanel>
                    </Button>
                    <Button Style="{StaticResource ActionButtonStyle}" Margin="2,0,0,0">
                        <StackPanel Orientation="Horizontal">
                            <TextBlock Text="🗑" Margin="0,0,4,0"/>
                            <TextBlock Text="删除"/>
                        </StackPanel>
                    </Button>
                    <Button Style="{StaticResource ActionButtonStyle}" Margin="2,0,0,0">
                        <StackPanel Orientation="Horizontal">
                            <TextBlock Text="📋" Margin="0,0,4,0"/>
                            <TextBlock Text="复制"/>
                        </StackPanel>
                    </Button>
                    <Button Style="{StaticResource ActionButtonStyle}" Margin="2,0,0,0">
                        <StackPanel Orientation="Horizontal">
                            <TextBlock Text="📄" Margin="0,0,4,0"/>
                            <TextBlock Text="粘贴"/>
                        </StackPanel>
                    </Button>
                </StackPanel>
            </Border>-->
        </Grid>
    </Border>
</UserControl>