MainWindow.xaml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <Window x:Class="WpfApp1.MainWindow"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. Title="Главное меню" Height="420" Width="420"
  5. WindowStartupLocation="CenterScreen">
  6. <Grid Margin="30">
  7. <Grid.RowDefinitions>
  8. <RowDefinition Height="Auto"/>
  9. <RowDefinition Height="Auto"/>
  10. <RowDefinition Height="Auto"/>
  11. <RowDefinition Height="Auto"/>
  12. <RowDefinition Height="*"/>
  13. <RowDefinition Height="Auto"/>
  14. </Grid.RowDefinitions>
  15. <!-- Заголовок -->
  16. <TextBlock Text="Главное меню" FontSize="22" FontWeight="Bold"
  17. HorizontalAlignment="Center" Margin="0,0,0,15"/>
  18. <!-- Информация о пользователе -->
  19. <TextBlock x:Name="lblUser" Grid.Row="1" TextAlignment="Center"
  20. FontSize="13" Foreground="Gray" Margin="0,0,0,30"/>
  21. <!-- Кнопка "Заказы" -->
  22. <Button Grid.Row="2" Content="Заказы (фильтры)" Width="220" Height="42"
  23. Margin="0,0,0,12" Click="BtnOrders_Click"
  24. FontSize="14" Background="#3498DB" Foreground="White"/>
  25. <!-- Кнопка "Водители" -->
  26. <Button Grid.Row="3" Content="Водители (редактирование)" Width="220" Height="42"
  27. Margin="0,0,0,20" Click="BtnDrivers_Click"
  28. FontSize="14" Background="#27AE60" Foreground="White"/>
  29. <!-- Разделитель -->
  30. <Border Grid.Row="4" Height="1" Background="LightGray"
  31. VerticalAlignment="Bottom" Margin="0,0,0,15"/>
  32. <!-- Кнопка "Выход" -->
  33. <Button Grid.Row="5" Content="Выход" Width="220" Height="38"
  34. Click="BtnLogout_Click"
  35. FontSize="13" Background="#ECF0F1" Foreground="Gray"/>
  36. </Grid>
  37. </Window>