<Window x:Class="MWS.Domain.View.History.SelectVarCodeWindow"
        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:MWS.Domain.View.History"
        xmlns:md="http://materialdesigninxaml.net/winfx/xaml/themes" 
        xmlns:ControlHelper="clr-namespace:MWS.Domain.Common.ControlHelper" 
        mc:Ignorable="d"
        WindowStyle="None"
        ResizeMode="NoResize"
        
        Loaded="Window_Loaded"
        Background="#F0F5F8"
        BorderBrush="#2DA6EC"
        BorderThickness="1,1,1,1"
        WindowStartupLocation="CenterScreen"
        Title="SelectVarCodeWindow" Height="450" Width="1000">
    <!--<md:DialogHost Identifier="VarDialog" >-->
        <Grid>
            <StackPanel>
                <StackPanel Height="80" Orientation="Horizontal">
                    <StackPanel DockPanel.Dock="Left" Orientation="Horizontal" Margin="21,20,12,20" >
                        <TextBlock Text="关键字" VerticalAlignment="Center" Margin="0,0,10,0" />
                        <TextBox x:Name="tbkeyword"  Style="{StaticResource DefaultTextBoxStyle}" BorderBrush="#CCCCCC" Height="36" Width="200" Padding="9"  md:HintAssist.Hint="检索关键字" />
                    </StackPanel>
                    <StackPanel Orientation="Horizontal"  Margin="0,20,12,20" >
                        <TextBlock Text="设备" VerticalAlignment="Center" Margin="0,0,10,0" />
                        <ComboBox x:Name="device"  Style="{StaticResource DefaultComboBoxStyle}"  ItemsSource="{Binding}"
                          md:HintAssist.Hint="全部"   Height="36"   Width="160" >
                        </ComboBox>
                    </StackPanel>
                    <StackPanel Orientation="Horizontal"  DockPanel.Dock="Right" HorizontalAlignment="Right" Width="340">
                        <Button x:Name="search"  Height="36" Margin="10,20,20,20" Background="#2DA6EC" BorderThickness="0" md:ButtonAssist.CornerRadius="5" Click="search_Click">
                            <TextBlock>
                            <md:PackIcon Kind="Crosshairs" Width="20" Height="20" Margin="0,2"/>
                            <Label Content="查询" FontSize="14" Foreground="#FFFFFF" />
                            </TextBlock>
                        </Button>

                    </StackPanel>
                    <StackPanel  Orientation="Horizontal"  DockPanel.Dock="Right" HorizontalAlignment="Right">
                        <Button x:Name="select"  Height="36" Margin="10,20,10,20" Background="#2DA6EC" BorderThickness="0" md:ButtonAssist.CornerRadius="5" Click="select_Click">
                            <TextBlock>
                            <md:PackIcon Kind="CheckOutline" Width="20" Height="20" Margin="0,2"/>
                            <Label Content="确定" FontSize="14" Foreground="#FFFFFF" />
                            </TextBlock>
                        </Button>
                        <Button x:Name="close"  Height="36" Margin="0,21,10,20" Background="Gray" BorderThickness="0" md:ButtonAssist.CornerRadius="5" Click="close_Click">
                            <TextBlock><!--<Label Content="关闭" FontSize="14" Foreground="#FFFFFF" />-->
                                <md:PackIcon Kind="CloseOutline" Width="20" Height="20" Margin="0,2"/>
                            </TextBlock>
                        </Button>
                    </StackPanel>
                </StackPanel>
                <StackPanel Orientation="Horizontal">
                    <StackPanel>
                        <Border CornerRadius="5" Height="360" Width="440" HorizontalAlignment="Left">
                            <!--<StackPanel>-->
                            <DataGrid x:Name="dglist" ItemsSource="{Binding}" Background="Transparent"  Style="{StaticResource DefaultDataGridStyle}"  ColumnHeaderStyle="{StaticResource DefaultDataGridColumnHeaderStyle}">
                                <DataGrid.Columns>
                                    <DataGridTextColumn Header="变量id" Width="1*" Binding="{Binding Id}"/>
                                    <DataGridTextColumn Header="变量名称" Width="1*" Binding="{Binding Name}"/>
                                </DataGrid.Columns>
                            </DataGrid>
                            <!--</StackPanel>-->
                        </Border>
                    </StackPanel>

                    <StackPanel Width="110"  HorizontalAlignment="Center" VerticalAlignment="Center">
                        <Button x:Name="addVarCode"  Height="36" Margin="5,20,5,20" Background="#2DA6EC" BorderThickness="0" md:ButtonAssist.CornerRadius="5" Click="addVarCode_Click">
                            <TextBlock>
                            <md:PackIcon Kind="ChevronDoubleRight" Width="25" Height="25" Margin="0,0"/>
                            <Label Content="添加" FontSize="14" Foreground="#FFFFFF" />
                            </TextBlock>
                        </Button>
                        <Button x:Name="delectVarCode"  Height="36" Margin="5,20,5,20" Background="#2DA6EC" BorderThickness="0" md:ButtonAssist.CornerRadius="5" Click="delectVarCode_Click">
                            <TextBlock>
                            <md:PackIcon Kind="ChevronDoubleLeft" Width="25" Height="25" Margin="0,0"/>
                            <Label Content="移除" FontSize="14" Foreground="#FFFFFF" />
                            </TextBlock>
                        </Button>
                    </StackPanel>
                    <StackPanel Width="440">
                        <StackPanel>
                            <Border CornerRadius="5" Height="360" Width="440" HorizontalAlignment="Left">
                                <!--<StackPanel>-->
                                <DataGrid x:Name="dglistSelect" ItemsSource="{Binding}" Background="Transparent"  Style="{StaticResource DefaultDataGridStyle}"  ColumnHeaderStyle="{StaticResource DefaultDataGridColumnHeaderStyle}">
                                    <DataGrid.Columns>
                                        <DataGridTextColumn Header="变量id" Width="1*" Binding="{Binding Id}"/>
                                        <DataGridTextColumn Header="变量名称" Width="1*" Binding="{Binding Name}"/>
                                    </DataGrid.Columns>
                                </DataGrid>
                                <!--</StackPanel>-->
                            </Border>
                        </StackPanel>
                    </StackPanel>
                </StackPanel>
            </StackPanel>
        </Grid>
    <!--</md:DialogHost>-->
</Window>
