<Window x:Class="WpfApp1.EditDriverWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Редактирование водителя" Height="350" Width="380"
        WindowStartupLocation="CenterOwner" ResizeMode="NoResize">

    <Grid Margin="20">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="Auto"/>
        </Grid.RowDefinitions>

        <TextBlock Text="Фамилия:" Margin="0,0,0,5" FontWeight="Bold"/>
        <TextBox x:Name="txtLastName" Grid.Row="1" Height="28" Margin="0,0,0,15"/>

        <TextBlock Text="Имя и Отчество:" Grid.Row="2" Margin="0,0,0,5" FontWeight="Bold"/>
        <TextBox x:Name="txtFullName" Grid.Row="3" Height="28" Margin="0,0,0,15"/>

        <TextBlock Text="Табельный номер:" Grid.Row="4" Margin="0,0,0,5" FontWeight="Bold"/>
        <TextBox x:Name="txtTabNumber" Grid.Row="5" Height="28" Margin="0,0,0,20"/>

        <StackPanel Grid.Row="6" Orientation="Horizontal" HorizontalAlignment="Right">
            <Button Content="Сохранить" Width="90" Height="30" Margin="5" 
                   Click="BtnSave_Click" IsDefault="True"/>
            <Button Content="Отмена" Width="90" Height="30" Margin="5" 
                   Click="BtnCancel_Click" IsCancel="True"/>
        </StackPanel>
    </Grid>
</Window>