wenxiangchao
2026-11-02 fe2aa4880d5c9fd88088ad0ed81ebaca05629f5f
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
78
79
80
81
<hb:SimpleMaskControl x:Class="Plugin.TestPlanEditor.EditorUI"
             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:Plugin.TestPlanEditor"
             mc:Ignorable="d" 
             xmlns:hb="clr-namespace:HMI.Base;assembly=HMI.Base"
             xmlns:ote="clr-namespace:OpenTapEditor;assembly=SeqEditor"
             xmlns:ui="clr-namespace:UILib;assembly=UILib"
             xmlns:op="clr-namespace:OpenTap;assembly=OpenTap"
             xmlns:sys="clr-namespace:System;assembly=mscorlib" 
             xmlns:pu="https://opensource.panuon.com/wpf-ui"
             d:DesignHeight="450" d:DesignWidth="800">
    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="/UILib;component/Styles.xaml"/>
                <ResourceDictionary Source="/SeqEditor;component/UIStyle.xaml"/>
                <pu:StyleDictionary Excludes="Menu,ListView,ToggleButton,ContextMenu,TabControl,CheckBox,TextBox,Button" />
            </ResourceDictionary.MergedDictionaries>
 
            <sys:Double x:Key="GlobalFontSize">14</sys:Double>
            <ui:ReverseBoolConverter x:Key="ReverseBool"/>
            <ObjectDataProvider x:Key="BreakConditionValues" 
        MethodName="GetValues" 
        ObjectType="{x:Type sys:Enum}">
                <ObjectDataProvider.MethodParameters>
                    <x:Type TypeName="op:BreakCondition"/>
                </ObjectDataProvider.MethodParameters>
            </ObjectDataProvider>
 
            <sys:Double x:Key="{x:Static SystemParameters.VerticalScrollBarWidthKey}">3</sys:Double>
            <sys:Double x:Key="{x:Static SystemParameters.HorizontalScrollBarHeightKey}">3</sys:Double>
 
            <Style TargetType="ScrollViewer">
                <Style.Resources>
                    <Style TargetType="ScrollBar" BasedOn="{StaticResource ScrollStyle_Mobile}"/>
                </Style.Resources>
            </Style>
 
            <Style TargetType="TabItem">
                <Setter Property="Padding" Value="5"/>
                <Setter Property="Background" Value="#f2f3f5"/>
                <Setter Property="BorderThickness" Value="0"/>
                <Setter Property="BorderBrush" Value="{StaticResource BorderBrush}"/>
                <Setter Property="FontSize" Value="10"/>
                <Setter Property="Cursor" Value="Hand"/>
                <Setter Property="Template">
                    <Setter.Value>
                        <ControlTemplate TargetType="TabItem">
                            <Border x:Name="border" Background="{TemplateBinding Background}"
BorderBrush="{TemplateBinding BorderBrush}"
BorderThickness="{TemplateBinding BorderThickness}"
Padding="{TemplateBinding Padding}">
                                <ContentPresenter x:Name="contentPresenter" 
              ContentSource="Header"
              HorizontalAlignment="Center" 
              VerticalAlignment="Center"/>
                            </Border>
                            <ControlTemplate.Triggers>
                                <Trigger Property="IsMouseOver" Value="True">
                                    <Setter TargetName="border" Property="Background" Value="#e0e9f2"/>
                                </Trigger>
                                <Trigger Property="IsSelected" Value="True">
                                    <Setter TargetName="border" Property="Background" Value="#bcddee"/>
                                    <Setter TargetName="border" Property="BorderThickness" Value="0,0,0,2"/>
                                    <Setter TargetName="border" Property="BorderBrush" Value="#3498DB"/>
                                </Trigger>
                            </ControlTemplate.Triggers>
                        </ControlTemplate>
                    </Setter.Value>
                </Setter>
            </Style>
        </ResourceDictionary>
    </UserControl.Resources>
 
    <Grid>
        <ote:SeqEditorUI x:Name="editor"/>
    </Grid>
</hb:SimpleMaskControl>