<UserControl x:Class="StartServerWPF.Modules.Main.Views.AddWorkAreaDialog"
             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:prism="http://prismlibrary.com/"
             prism:ViewModelLocator.AutoWireViewModel="True"
             mc:Ignorable="d" 
             d:DesignHeight="200" d:DesignWidth="400">
    <UserControl.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>

            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </UserControl.Resources>
    <prism:Dialog.WindowStyle>
        <Style TargetType="Window">
            <Setter Property="Width" Value="400"/>
            <Setter Property="Height" Value="200"/>
        </Style>
    </prism:Dialog.WindowStyle>
    <Grid Margin="10">
        <Grid.RowDefinitions>
            <RowDefinition Height="10"/>
            <RowDefinition Height="10*"/>
            <RowDefinition Height="50"/>
        </Grid.RowDefinitions>
        <Grid Grid.Row="1" VerticalAlignment="Center">
            <Grid.RowDefinitions>
                <RowDefinition Height="1*"/>
                <RowDefinition Height="1*"/>
            </Grid.RowDefinitions>
            <DockPanel VerticalAlignment="Center">
                <TextBlock Text="工区名称：" Grid.Row="0" Grid.Column="0" VerticalAlignment="Center"/>
                <TextBlock DockPanel.Dock="Right"  Width="30" Visibility="Hidden"/>
                <TextBox Text="{Binding WorkAreaName}"  Grid.Row="0" Grid.Column="1" />
            </DockPanel>
            <DockPanel Grid.Row="1" Margin="0,5,0,0">
                <TextBlock Text="工区目录：" VerticalAlignment="Center"/>
                <Button Content="..." Command="{Binding FilePathSaveCommand}" DockPanel.Dock="Right"/>
                <TextBox Text="{Binding WorkAreaPath}"  IsReadOnly="True"  />
            </DockPanel>
        </Grid>
        <StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Grid.Row="2"  >
            <Button Content="确认" Width="100" Height="30" Margin="5,0"                
                    Background="#FF0ABEFF"
                    Command="{Binding ConfirmCommand}"/>
            <Button Content="取消" Width="100" Height="30"
                   
                    Background="#DDD" Foreground="#666"
                    Command="{Binding CancelCommand}"/>
        </StackPanel>
    </Grid>
</UserControl>
