<fw:BaseWindow x:Class="Com.FirmLib.UI.Manufacturer.WinManufacturerEditor"
             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:fw="http://schemas.FWind/xaml"
             xmlns:uc="clr-namespace:Com.FirmLib.UI.Common"
             mc:Ignorable="d" 
            SizeToContent="Height" Width="270" x:Name="this" WindowStartupLocation="CenterOwner">
    <Grid Margin="5" Validation.ErrorTemplate="{StaticResource ResourceKey={x:Static fw:ResourceKeys.EmptyErrorTemplateKey}}">
           <Grid.RowDefinitions>
           <RowDefinition></RowDefinition>
           <RowDefinition Height="30"></RowDefinition>
            <RowDefinition Height="Auto"></RowDefinition>
           </Grid.RowDefinitions>
        <Grid.BindingGroup  >
            <BindingGroup x:Name="bg"  NotifyOnValidationError="False"/>
        </Grid.BindingGroup>
        <StackPanel Orientation="Vertical" HorizontalAlignment="Stretch">
            <Label  Style="{StaticResource ResourceKey={x:Static uc:CommonStyles.StarLableKey}}" Content="生产厂家名称:"></Label>

            <!--Text="{Binding Name,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}"-->
            <TextBox  Style="{StaticResource ResourceKey={x:Static uc:CommonStyles.TextBoxKey}}" Margin="5">
      
                <Binding Path="Name" Mode="TwoWay" UpdateSourceTrigger="PropertyChanged" >
                    <Binding.ValidationRules>
                        <fw:RequireValidationRule ></fw:RequireValidationRule>
                    </Binding.ValidationRules>
                </Binding>
            </TextBox>
        </StackPanel>
        
        <fw:LineSpliter Grid.Column="0" Margin="5,0,5,0" Grid.Row="1" VerticalAlignment="Center" ></fw:LineSpliter>

        <StackPanel Grid.Row="2" Orientation="Horizontal" VerticalAlignment="Center" HorizontalAlignment="Center">
            <Button Command="{Binding Commands.AddCommand}" CommandParameter="{Binding ElementName=this}"  Style="{StaticResource ResourceKey={x:Static uc:CommonStyles.ButtonKey}}"  Height="23" Width="60"  Margin="10" Content="完成" Click="btnOK_Click"/>
            <Button  Command="{Binding Commands.AddAndManage}" CommandParameter="{Binding ElementName=this}"  Click="btnOK_Click"  Style="{StaticResource ResourceKey={x:Static uc:CommonStyles.ButtonKey}}"  Height="23" Margin="10" Content="继续管理厂商库其他信息"/>
        </StackPanel>
    </Grid>
    </fw:BaseWindow>







