| File was renamed from WPFProject/UI/Test/SequnceList.xaml |
| | |
| | | <UserControl x:Class="WPFProject.UI.Test.SequnceList" |
| | | <UserControl x:Class="Plugin.TestBuilder.SequnceList" |
| | | 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:WPFProject.UI.Test" |
| | | xmlns:hc="https://handyorg.github.io/handycontrol" |
| | | xmlns:local="clr-namespace:Plugin.TestBuilder" |
| | | xmlns:dd="urn:gong-wpf-dragdrop" |
| | | |
| | | mc:Ignorable="d" |
| | |
| | | d:DesignHeight="450" d:DesignWidth="800"> |
| | | <UserControl.Resources> |
| | | <ResourceDictionary> |
| | | <ResourceDictionary.MergedDictionaries> |
| | | <ResourceDictionary Source="pack://application:,,,/HandyControl;component/Themes/SkinDefault.xaml"/> |
| | | <ResourceDictionary Source="pack://application:,,,/HandyControl;component/Themes/Theme.xaml"/> |
| | | <ResourceDictionary Source="/HMI.UI;component/Style/Colors.xaml"/> |
| | | <ResourceDictionary Source="/HMI.UI;component/Style/WindowResources.xaml"/> |
| | | <ResourceDictionary Source="/WPFProject;component/Style/ListViewStyle.xaml"/> |
| | | </ResourceDictionary.MergedDictionaries> |
| | | |
| | | <Style TargetType="Label"></Style> |
| | | <Style TargetType="ListView"></Style> |
| | | |
| | | <Style TargetType="DataGridRow" x:Key="CommonRow" BasedOn="{StaticResource DataGridRowStyle}"> |
| | | <Style TargetType="DataGridRow" x:Key="CommonRow"> |
| | | <Setter Property="Margin" Value="0"/> |
| | | <Setter Property="Template"> |
| | | <Setter.Value> |
| | |
| | | </Style.Triggers> |
| | | </Style> |
| | | |
| | | <Style TargetType="DataGridCell" x:Key="CommonCell" BasedOn="{StaticResource DataGridCellStyle}"> |
| | | <Style TargetType="DataGridCell" x:Key="CommonCell"> |
| | | <Setter Property="BorderBrush" Value="{Binding Path=HorizontalGridLinesBrush,RelativeSource={RelativeSource FindAncestor,AncestorType=DataGrid}}"/> |
| | | <Setter Property="BorderThickness" Value="0,0,1,1"/> |
| | | <Setter Property="Padding" Value="0"/> |
| | |
| | | </Style.Triggers> |
| | | </Style> |
| | | |
| | | <Style TargetType="DataGrid" BasedOn="{StaticResource DataGridBaseStyle}"> |
| | | <Style TargetType="DataGrid" BasedOn="{StaticResource DefaultDataGrid}"> |
| | | <Setter Property="GridLinesVisibility" Value="None"/> |
| | | <Setter Property="HorizontalGridLinesBrush" Value="Gray"/> |
| | | <Setter Property="RowStyle" Value="{StaticResource CommonRow}"/> |
| | | <Setter Property="CellStyle" Value="{StaticResource CommonCell}"/> |
| | | <Setter Property="ColumnHeaderStyle" Value="{StaticResource CommonColumnHeader}"/> |
| | | <Setter Property="hc:BorderElement.CornerRadius" Value="0" /> |
| | | <Setter Property="RowHeight" Value="30"/> |
| | | </Style> |
| | | </ResourceDictionary> |
| | |
| | | |
| | | <Grid> |
| | | <Grid.ColumnDefinitions> |
| | | <ColumnDefinition Width="3*"/> |
| | | <ColumnDefinition Width="2*"/> |
| | | <ColumnDefinition Width="2"/> |
| | | <ColumnDefinition Width="7*"/> |
| | | <ColumnDefinition Width="8*"/> |
| | | </Grid.ColumnDefinitions> |
| | | <ListView ItemContainerStyle="{StaticResource a}" ItemsSource="{Binding Sequences}" BorderThickness="0" |
| | | <ListBox ItemsSource="{Binding Sequences}" Style="{StaticResource DefaultListBox}" BorderThickness="0" |
| | | dd:DragDrop.IsDragSource="True" |
| | | dd:DragDrop.IsDropTarget="True" |
| | | dd:DragDrop.ShowAlwaysDropTargetAdorner="True" |
| | | dd:DragDrop.UseDefaultDragAdorner="True" |
| | | SelectionChanged="ListView_SelectionChanged"> |
| | | |
| | | <ListView.ItemTemplate> |
| | | <ListBox.ItemTemplate> |
| | | <DataTemplate> |
| | | <ContentControl Content="{Binding Name}"/> |
| | | <ContentControl Cursor="Hand" Content="{Binding Name}"/> |
| | | </DataTemplate> |
| | | </ListView.ItemTemplate> |
| | | </ListView> |
| | | </ListBox.ItemTemplate> |
| | | </ListBox> |
| | | |
| | | <GridSplitter Grid.Column="1" Background="LightGray" HorizontalAlignment="Center" Width="2" ResizeDirection="Columns"/> |
| | | |
| | |
| | | </DataGridTemplateColumn> |
| | | </DataGrid.Columns> |
| | | </DataGrid> |
| | | |
| | | <!--<ListView > |
| | | <ListView.View> |
| | | <GridView> |
| | | |
| | | </GridView> |
| | | </ListView.View> |
| | | </ListView>--> |
| | | </Grid> |
| | | |
| | | </Grid> |
| | | </UserControl> |