<Window x:Class="SlnMesnac.WPF.Page.CabinetInfo.BusbarUpdateWindow"
        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:SlnMesnac.WPF.Page.CabinetInfo"
        mc:Ignorable="d"
        Title="修改母排信息" Height="450" Width="800">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="2*"/>
            <RowDefinition Height="2*"/>
            <RowDefinition Height="2*"/>
            <RowDefinition Height="2*"/>
            <RowDefinition Height="2*"/>
            <RowDefinition Height="2*"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition/>
            <ColumnDefinition/>
        </Grid.ColumnDefinitions>
        

        <Border Grid.Row="0" Grid.Column="0" Margin="5,5">
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
                <TextBlock Text="母排编号" FontSize="18" Foreground="#31446E" Margin="0,5,10,3"/>
                <TextBox Text="{Binding BusbarInfo.busbarCode}" FontSize="16" Grid.Row="1" Width="200" Height="35" VerticalContentAlignment="Center" HorizontalAlignment="Center" Padding="5">
                    <TextBox.Template>
                        <ControlTemplate TargetType="TextBox">
                            <Border Background="#EBF4FD" BorderBrush="White" BorderThickness="1" CornerRadius="5">
                                <ScrollViewer x:Name="PART_ContentHost" />
                            </Border>
                        </ControlTemplate>
                    </TextBox.Template>
                </TextBox>
            </StackPanel>
        </Border>

        <Border Grid.Row="0" Grid.Column="1" Margin="5,5">
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
                <TextBlock Text="母排别名" FontSize="18" Foreground="#31446E" Margin="0,5,10,3"/>
                <TextBox Text="{Binding BusbarInfo.busbarAlias}" FontSize="16" Grid.Row="1" Width="200" Height="35" VerticalContentAlignment="Center" HorizontalAlignment="Center" Padding="5">
                    <TextBox.Template>
                        <ControlTemplate TargetType="TextBox">
                            <Border Background="#EBF4FD" BorderBrush="White" BorderThickness="1" CornerRadius="5">
                                <ScrollViewer x:Name="PART_ContentHost" />
                            </Border>
                        </ControlTemplate>
                    </TextBox.Template>
                </TextBox>
            </StackPanel>
        </Border>

        <Border Grid.Row="1" Grid.Column="0" Margin="5,5">
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
                <TextBlock Text="母排距离" FontSize="18" Foreground="#31446E" Margin="0,5,10,3"/>
                <TextBox Text="{Binding BusbarInfo.busbarDist}" FontSize="16" Grid.Row="1" Width="200" Height="35" VerticalContentAlignment="Center" HorizontalAlignment="Center" Padding="5">
                    <TextBox.Template>
                        <ControlTemplate TargetType="TextBox">
                            <Border Background="#EBF4FD" BorderBrush="White" BorderThickness="1" CornerRadius="5">
                                <ScrollViewer x:Name="PART_ContentHost" />
                            </Border>
                        </ControlTemplate>
                    </TextBox.Template>
                </TextBox>
            </StackPanel>
        </Border>

        <Border Grid.Row="1" Grid.Column="1" Margin="5,5">
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
                <TextBlock Text="是否尾排" FontSize="18" Foreground="#31446E" Margin="0,5,10,3"/>
                <TextBox Text="{Binding BusbarInfo.isEnd}" FontSize="16" Grid.Row="1" Width="200" Height="35" VerticalContentAlignment="Center" HorizontalAlignment="Center" Padding="5">
                    <TextBox.Template>
                        <ControlTemplate TargetType="TextBox">
                            <Border Background="#EBF4FD" BorderBrush="White" BorderThickness="1" CornerRadius="5">
                                <ScrollViewer x:Name="PART_ContentHost" />
                            </Border>
                        </ControlTemplate>
                    </TextBox.Template>
                </TextBox>
            </StackPanel>
        </Border>

        <Border Grid.Row="2" Grid.Column="0" Margin="5,5">
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
                <TextBlock Text="是否旋转" FontSize="18" Foreground="#31446E" Margin="0,5,10,3"/>
                <TextBox Text="{Binding BusbarInfo.isRotate}" FontSize="16" Grid.Row="1" Width="200" Height="35" VerticalContentAlignment="Center" HorizontalAlignment="Center" Padding="5">
                    <TextBox.Template>
                        <ControlTemplate TargetType="TextBox">
                            <Border Background="#EBF4FD" BorderBrush="White" BorderThickness="1" CornerRadius="5">
                                <ScrollViewer x:Name="PART_ContentHost" />
                            </Border>
                        </ControlTemplate>
                    </TextBox.Template>
                </TextBox>
            </StackPanel>
        </Border>

        <Border Grid.Row="2" Grid.Column="1" Margin="5,5">
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
                <TextBlock Text="           P" FontSize="18" Foreground="#31446E" Margin="0,5,10,3"/>
                <TextBox Text="{Binding BusbarInfo.wPanPos}" FontSize="16" Grid.Row="1" Width="200" Height="35" VerticalContentAlignment="Center" HorizontalAlignment="Center" Padding="5">
                    <TextBox.Template>
                        <ControlTemplate TargetType="TextBox">
                            <Border Background="#EBF4FD" BorderBrush="White" BorderThickness="1" CornerRadius="5">
                                <ScrollViewer x:Name="PART_ContentHost" />
                            </Border>
                        </ControlTemplate>
                    </TextBox.Template>
                </TextBox>
            </StackPanel>
        </Border>

        <Border Grid.Row="3" Grid.Column="0" Margin="5,5">
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
                <TextBlock Text="           T" FontSize="18" Foreground="#31446E" Margin="0,5,10,3"/>
                <TextBox Text="{Binding BusbarInfo.wTiltPos}" FontSize="16" Grid.Row="1" Width="200" Height="35" VerticalContentAlignment="Center" HorizontalAlignment="Center" Padding="5">
                    <TextBox.Template>
                        <ControlTemplate TargetType="TextBox">
                            <Border Background="#EBF4FD" BorderBrush="White" BorderThickness="1" CornerRadius="5">
                                <ScrollViewer x:Name="PART_ContentHost" />
                            </Border>
                        </ControlTemplate>
                    </TextBox.Template>
                </TextBox>
            </StackPanel>
        </Border>

        <Border Grid.Row="3" Grid.Column="1" Margin="5,5">
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
                <TextBlock Text="           Z" FontSize="18" Foreground="#31446E" Margin="0,5,10,3"/>
                <TextBox Text="{Binding BusbarInfo.wZoomPos}" FontSize="16" Grid.Row="1" Width="200" Height="35" VerticalContentAlignment="Center" HorizontalAlignment="Center" Padding="5">
                    <TextBox.Template>
                        <ControlTemplate TargetType="TextBox">
                            <Border Background="#EBF4FD" BorderBrush="White" BorderThickness="1" CornerRadius="5">
                                <ScrollViewer x:Name="PART_ContentHost" />
                            </Border>
                        </ControlTemplate>
                    </TextBox.Template>
                </TextBox>
            </StackPanel>
        </Border>

        <Border Grid.Row="4" Grid.Column="0" Margin="5,5">
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
                <TextBlock Text="是否检测" FontSize="18" Foreground="#31446E" Margin="0,5,10,3"/>
                <TextBox Text="{Binding BusbarInfo.isChecked}" FontSize="16" Grid.Row="1" Width="200" Height="35" VerticalContentAlignment="Center" HorizontalAlignment="Center" Padding="5">
                    <TextBox.Template>
                        <ControlTemplate TargetType="TextBox">
                            <Border Background="#EBF4FD" BorderBrush="White" BorderThickness="1" CornerRadius="5">
                                <ScrollViewer x:Name="PART_ContentHost" />
                            </Border>
                        </ControlTemplate>
                    </TextBox.Template>
                </TextBox>
            </StackPanel>
        </Border>

        <Border Grid.Row="4" Grid.Column="1" Margin="5,5">
            <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
                <TextBlock Text="电柜编号" FontSize="18" Foreground="#31446E" Margin="0,5,10,3"/>
                <TextBox Text="{Binding BusbarInfo.cabinetCode}" FontSize="16" Grid.Row="1" Width="200" Height="35" VerticalContentAlignment="Center" HorizontalAlignment="Center" Padding="5" IsReadOnly="False">
                    <TextBox.Template>
                        <ControlTemplate TargetType="TextBox">
                            <Border Background="#EBF4FD" BorderBrush="White" BorderThickness="1" CornerRadius="5">
                                <ScrollViewer x:Name="PART_ContentHost" />
                            </Border>
                        </ControlTemplate>
                    </TextBox.Template>
                </TextBox>
            </StackPanel>
        </Border>

        <Border Grid.Row="5" Grid.Column="1" Margin="5,10" VerticalAlignment="Center" HorizontalAlignment="Right">
            <Button Content="保    存" Command="{Binding SaveBusbarInfoCommand}" Style="{StaticResource  BUTTON_AGREE}"  Width="100" Height="30" Background="#5095F3" BorderBrush="#5095F3" Margin="30,0,10,0"/>
        </Border>
    </Grid>
    
    
</Window>
