<Window x:Class="MeterVision.Dlg.EditNameDlg"
        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"
        Background="WhiteSmoke"
        ResizeMode="NoResize"
        WindowStartupLocation="CenterOwner"
        Title="编辑名称" Height="240" Width="320">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="40" />
        </Grid.RowDefinitions>

        <!-- 输入模板名称的区域 -->
        <Border Grid.Row="0" BorderBrush="#D3D3D3" BorderThickness="1" Margin="10 10 10 0" Background="White">
            <StackPanel Orientation="Vertical" VerticalAlignment="Center">

                <StackPanel Orientation="Vertical" Margin="20 10 20 0" VerticalAlignment="Center">
                    <TextBlock x:Name="txtTitle" Text="请输入名称:" HorizontalAlignment="Left" VerticalAlignment="Center" 
                               FontSize="14px" Foreground="#333333" Margin="0 0 0 10"  />
                    <TextBox Name="txtName" FontSize="14px" Foreground="#000000" VerticalAlignment="Center" Padding="2"/>
                </StackPanel>

            </StackPanel>
        </Border>
        <!-- 按钮区域 -->
        <StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Center">
            <Button Name="btnOK" Content="确定" HorizontalAlignment="Center" Margin="0 0 20 0"
                    VerticalAlignment="Center" Width="80" Height="26" Click="BtnOK_Click" />
            <Button Name="btnClose" Content="取消" HorizontalAlignment="Center" 
                    VerticalAlignment="Center" Width="80" Height="26" Click="BtnClose_Click" />
        </StackPanel>

    </Grid>
</Window>
