<UserControl x:Class="MegaRobo.C00225155App.MenuViews.AdditivePipetteConfigView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:animation="clr-namespace:Telerik.Windows.Controls.Animation;assembly=Telerik.Windows.Controls"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:iconPacks="http://metro.mahapps.com/winfx/xaml/iconpacks"
             xmlns:mat="clr-namespace:Telerik.Windows.Controls.MaterialControls;assembly=Telerik.Windows.Controls"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:mega="clr-namespace:MegaRobo.WpfComponents.MegaControls;assembly=MegaRobo.WpfComponents"
             xmlns:navi="clr-namespace:Telerik.Windows.Controls.Navigation;assembly=Telerik.Windows.Controls.Navigation"
             xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
             xmlns:viewmodels="clr-namespace:MegaRobo.C00225155App.MenuViewModels"
             mc:Ignorable="d"  DataContext="{Binding AdditivePipetteConfigVM,Source={StaticResource vmLocator}}"
             d:DesignHeight="600" d:DesignWidth="900">
    <UserControl.Resources>
        <!--<Style TargetType="telerik:GridViewHeaderCell">
            <Setter Property="Foreground" Value="White"/>
            <Setter Property="HorizontalContentAlignment" Value="Center"/>
            <Setter Property="VerticalContentAlignment" Value="Center"/>
        </Style>-->
        <Style TargetType="telerik:GridViewCell">
            <Setter Property="HorizontalContentAlignment" Value="Center" />
            <Setter Property="VerticalContentAlignment" Value="Center" />
        </Style>
        <!--<Style TargetType="telerik:GridViewHeaderRow">
            <Setter Property="Background" Value="#FF117EDF" />
        </Style>-->
        <Style TargetType="telerik:GridViewDataColumn">
            <Setter Property="HeaderTextAlignment" Value="Center"/>
        </Style>
    </UserControl.Resources>
    <TabControl Style="{StaticResource FancyTabControlStyle}">
        <TabItem Header="投料站_1ml" Style="{StaticResource FancyTabItemStyle1}">
            <Grid>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="64*"/>
                    <ColumnDefinition Width="103*"/>
                    <ColumnDefinition Width="731*"/>
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition Height="50"/>
                    <RowDefinition Height="*"/>
                    <!--<RowDefinition Height="50"/>-->
                </Grid.RowDefinitions>
                <StackPanel Grid.Row="0" Orientation="Horizontal" Grid.ColumnSpan="3">
                    <telerik:RadButton Command="{Binding LoadDataCommand_1ml}"  Style="{StaticResource ViewLoadButtonStyle}" Width="100"  Margin="10" HorizontalAlignment="Left" />
                    <telerik:RadButton Command="{Binding AddEntityCommand_1ml}"  Style="{StaticResource ViewAddButtonStyle}" />
                    <telerik:RadButton Command="{Binding DeleteEntityCommand_1ml}" Style="{StaticResource ViewDeleteButtonStyle}" />
                </StackPanel>

                <!-- 2. 配置列表 -->
                <telerik:RadGridView  Name="TaskGridView_1ml"  Grid.Row="1"  VerticalAlignment="Top"  AutoGenerateColumns="False"  CanUserFreezeColumns="False"  CanUserReorderColumns="False"
                  CanUserResizeColumns="false"  CanUserResizeRows="False" 
                  ItemsSource="{Binding Products_1ml_Dose, Mode=TwoWay}" 
                  SelectedItem="{Binding SelectedProduct_1ml_Dose}"  
                  EnableRowVirtualization="True" EnableColumnVirtualization="True" IsFilteringAllowed="False"                     
                  VirtualizingPanel.IsVirtualizing="True"  VirtualizingPanel.VirtualizationMode="Recycling"
                  ScrollViewer.IsDeferredScrollingEnabled="True" Opacity="1"  RowHeight="40"  RowIndicatorVisibility="Collapsed"  ShowColumnFooters="False"  ShowGroupPanel="False" Grid.ColumnSpan="3">
                    <telerik:RadGridView.HeaderRowStyle>
                        <Style TargetType="telerik:GridViewHeaderRow">
                            <Setter Property="Height" Value="40"/>
                            <Setter Property="VerticalAlignment" Value="Top"/>
                            <Setter Property="Foreground" Value="Transparent"/>
                        </Style>
                    </telerik:RadGridView.HeaderRowStyle>

                    <telerik:RadGridView.Columns>
                        <telerik:GridViewDataColumn Header="ID" DataMemberBinding="{Binding Id,Mode=TwoWay}"  Width="60" IsReadOnly="True"/>
                        <telerik:GridViewDataColumn Header="Tip类型 50-1/300-2/1000-3" DataMemberBinding="{Binding TipType,Mode=TwoWay}" Width="200"  IsReadOnly="False"/>
                        <telerik:GridViewDataColumn Header="液体名称" DataMemberBinding="{Binding LiquidName,Mode=TwoWay}" Width="100" IsReadOnly="False"/>
                        <telerik:GridViewDataColumn Header="系数(纯水为标)" DataMemberBinding="{Binding Ratio,Mode=TwoWay,StringFormat=F4}" Width="100" IsReadOnly="False"/>
                        <telerik:GridViewDataColumn Header="液体编号" DataMemberBinding="{Binding LiquidParamId,Mode=TwoWay}" Width="100" IsReadOnly="False"/>
                        <telerik:GridViewDataColumn Header="容器编号" DataMemberBinding="{Binding ContainerPlateIndex,Mode=TwoWay}" Width="100" IsReadOnly="True"/>
                        <telerik:GridViewDataColumn Header="平台编号" DataMemberBinding="{Binding PlatformCode,Mode=TwoWay}" Width="100" IsReadOnly="True"/>
                        <telerik:GridViewDataColumn Header="吸液高度"  DataMemberBinding="{Binding AspireHeight,Mode=TwoWay}"  Width="100" IsReadOnly="False"/>
                        <telerik:GridViewDataColumn Header="分液高度"  DataMemberBinding="{Binding DispenHeight,Mode=TwoWay}"  Width="100" IsReadOnly="False"/>
                        <telerik:GridViewDataColumn Header="是否页面探测"  DataMemberBinding="{Binding LiqLedetec,Mode=TwoWay}"  Width="100" IsReadOnly="False"/>

                    </telerik:RadGridView.Columns>
                </telerik:RadGridView>

                <!-- 3. 保存按钮（示例，实际在详情窗口处理） -->
                <!--<Button Content="保存到数据库" Style="{StaticResource btnMenu}" Width="120" Command="{Binding SaveSuckDetailsCommand}"  Grid.Row="2" Margin="10" HorizontalAlignment="Right" />-->
            </Grid>

        </TabItem>

        <!--<TabItem Header="反应站_1ml" Style="{StaticResource FancyTabItemStyle1}">
            <Border  BorderThickness="1" CornerRadius="3">
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height="50"/>
                        <RowDefinition Height="*"/>
                        --><!--<RowDefinition Height="50"/>--><!--
                    </Grid.RowDefinitions>
                    <StackPanel Grid.Row="0" Orientation="Horizontal">
                        <telerik:RadButton Command="{Binding LoadDataCommand_1ml_React}" Style="{StaticResource ViewLoadButtonStyle}" Width="100"  Margin="10" HorizontalAlignment="Left" />
                        <telerik:RadButton Command="{Binding AddEntityCommand_1ml_React}" Style="{StaticResource ViewAddButtonStyle}" />
                        <telerik:RadButton Command="{Binding DeleteEntityCommand_1ml_React}" Style="{StaticResource ViewDeleteButtonStyle}" />
                    </StackPanel>

                    --><!-- 2. 配置列表 --><!--
                    <telerik:RadGridView  Name="TaskGridView"  Grid.Row="1"  HorizontalAlignment="Stretch"  VerticalAlignment="Top"  AutoGenerateColumns="False"  CanUserFreezeColumns="False"  CanUserReorderColumns="False"
                        CanUserResizeColumns="false"  CanUserResizeRows="False" 
                        ItemsSource="{Binding Products_1ml_React, Mode=TwoWay}" 
                        SelectedItem="{Binding SelectedProduct_1ml_React}"  
                        EnableRowVirtualization="True" EnableColumnVirtualization="True" IsFilteringAllowed="False"                     
                        VirtualizingPanel.IsVirtualizing="True"  VirtualizingPanel.VirtualizationMode="Recycling"
                        ScrollViewer.IsDeferredScrollingEnabled="True" Opacity="1"  RowHeight="40"  RowIndicatorVisibility="Collapsed"  ShowColumnFooters="False"  ShowGroupPanel="False">
                        <telerik:RadGridView.HeaderRowStyle>
                            <Style TargetType="telerik:GridViewHeaderRow">
                                <Setter Property="Height" Value="40"/>
                                <Setter Property="VerticalAlignment" Value="Top"/>
                                <Setter Property="Foreground" Value="Transparent"/>
                            </Style>
                        </telerik:RadGridView.HeaderRowStyle>

                        <telerik:RadGridView.Columns>
                            <telerik:GridViewDataColumn Header="ID" DataMemberBinding="{Binding Id,Mode=TwoWay}"  Width="60" IsReadOnly="True"/>
                            <telerik:GridViewDataColumn Header="Tip类型 50-1/300-2/1000-3" DataMemberBinding="{Binding TipType,Mode=TwoWay}" Width="200"  IsReadOnly="False"/>
                            <telerik:GridViewDataColumn Header="操作类型" DataMemberBinding="{Binding FuncType,Mode=TwoWay}" Width="100"  IsReadOnly="False"/>
                            <telerik:GridViewDataColumn Header="液体名称" DataMemberBinding="{Binding LiquidName,Mode=TwoWay}" Width="100" IsReadOnly="False"/>
                            <telerik:GridViewDataColumn Header="系数(纯水为标)" DataMemberBinding="{Binding Ratio,Mode=TwoWay,StringFormat=F4}" Width="100" IsReadOnly="False"/>
                            <telerik:GridViewDataColumn Header="液体编号" DataMemberBinding="{Binding LiquidParamId,Mode=TwoWay}" Width="100" IsReadOnly="False"/>
                            <telerik:GridViewDataColumn Header="容器编号" DataMemberBinding="{Binding ContainerPlateIndex,Mode=TwoWay}" Width="100" IsReadOnly="True"/>
                            <telerik:GridViewDataColumn Header="平台编号" DataMemberBinding="{Binding PlatformCode,Mode=TwoWay}" Width="100" IsReadOnly="True"/>
                            <telerik:GridViewDataColumn Header="吸液高度"  DataMemberBinding="{Binding AspireHeight,Mode=TwoWay}"  Width="100" IsReadOnly="False"/>
                            <telerik:GridViewDataColumn Header="分液高度"  DataMemberBinding="{Binding DispenHeight,Mode=TwoWay}"  Width="100" IsReadOnly="False"/>
                            <telerik:GridViewDataColumn Header="是否页面探测"  DataMemberBinding="{Binding LiqLedetec,Mode=TwoWay}"  Width="100" IsReadOnly="False"/>

                        </telerik:RadGridView.Columns>
                    </telerik:RadGridView>

                    --><!-- 3. 保存按钮（示例，实际在详情窗口处理） -->
                    <!--<Button Content="保存到数据库" Style="{StaticResource btnMenu}" Width="120" Command="{Binding SaveSuckDetailsCommand}"  Grid.Row="2" Margin="10" HorizontalAlignment="Right" />--><!--
                </Grid>
            </Border>
        </TabItem>-->

    </TabControl>
</UserControl>
