EditDriverWindow.xaml 1.6 KB

12345678910111213141516171819202122232425262728293031323334
  1. <Window x:Class="WpfApp1.EditDriverWindow"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. Title="Редактирование водителя" Height="350" Width="380"
  5. WindowStartupLocation="CenterOwner" ResizeMode="NoResize">
  6. <Grid Margin="20">
  7. <Grid.RowDefinitions>
  8. <RowDefinition Height="Auto"/>
  9. <RowDefinition Height="Auto"/>
  10. <RowDefinition Height="Auto"/>
  11. <RowDefinition Height="Auto"/>
  12. <RowDefinition Height="Auto"/>
  13. <RowDefinition Height="Auto"/>
  14. <RowDefinition Height="Auto"/>
  15. </Grid.RowDefinitions>
  16. <TextBlock Text="Фамилия:" Margin="0,0,0,5" FontWeight="Bold"/>
  17. <TextBox x:Name="txtLastName" Grid.Row="1" Height="28" Margin="0,0,0,15"/>
  18. <TextBlock Text="Имя и Отчество:" Grid.Row="2" Margin="0,0,0,5" FontWeight="Bold"/>
  19. <TextBox x:Name="txtFullName" Grid.Row="3" Height="28" Margin="0,0,0,15"/>
  20. <TextBlock Text="Табельный номер:" Grid.Row="4" Margin="0,0,0,5" FontWeight="Bold"/>
  21. <TextBox x:Name="txtTabNumber" Grid.Row="5" Height="28" Margin="0,0,0,20"/>
  22. <StackPanel Grid.Row="6" Orientation="Horizontal" HorizontalAlignment="Right">
  23. <Button Content="Сохранить" Width="90" Height="30" Margin="5"
  24. Click="BtnSave_Click" IsDefault="True"/>
  25. <Button Content="Отмена" Width="90" Height="30" Margin="5"
  26. Click="BtnCancel_Click" IsCancel="True"/>
  27. </StackPanel>
  28. </Grid>
  29. </Window>