<Window x:Class="MeterVision.Dlg.EditMemo"
        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:MeterVision.Dlg"
        mc:Ignorable="d"
        WindowStartupLocation="CenterOwner"
        ResizeMode="NoResize"
        Background="WhiteSmoke"
        Title="备注信息" Height="300" Width="400">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="50" />
        </Grid.RowDefinitions>

        <Border Background="White" Grid.Row="0" BorderBrush="#D3D3D3" BorderThickness="0 0 0 1">
            <Grid Margin="10 10 10 10">
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto" />
                    <!-- 文本说明占据自动高度 -->
                    <RowDefinition Height="*" />
                    <!-- TextBox 占满剩余空间 -->
                </Grid.RowDefinitions>

                <TextBlock Text="请输入备注信息：" FontSize="15" Margin="0 5" Grid.Row="0" />
                <TextBox Name="txtMemo" FontSize="14" Padding="10" TextWrapping="Wrap"
                     VerticalAlignment="Stretch"
                     VerticalScrollBarVisibility="Auto"
                     Grid.Row="1" />
            </Grid>
        </Border>


        <StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Center" 
                    VerticalAlignment="Center">
            <Button Name="btnOk" Content="确  定" Width="100" Height="35" VerticalAlignment="Center"
                    Padding="0 0 0 0" FontSize="14px" Margin="0 0 0 0"
                    Click="BtnOk_Click"/>
            <Button Name="btnCancel" Content="取  消" Width="100" Height="35" VerticalAlignment="Center"
                    Padding="0 0 0 0" FontSize="14px" Margin="20 0 0 0"
                    Click="BtnCancel_Click"/>
        </StackPanel>
        
    </Grid>
</Window>
