MainWindow.xaml 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <Window x:Class="WpfApp4.MainWindow"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:WpfApp4"
  7. mc:Ignorable="d"
  8. Title="MainWindow" Height="450" Width="800">
  9. <Grid ShowGridLines="True">
  10. <Grid.RowDefinitions>
  11. <RowDefinition Height="auto"/>
  12. <RowDefinition />
  13. <RowDefinition Height="auto"/>
  14. </Grid.RowDefinitions>
  15. <Grid.ColumnDefinitions>
  16. <ColumnDefinition Width="350"/>
  17. <ColumnDefinition/>
  18. </Grid.ColumnDefinitions>
  19. <Image
  20. Source="./img/ta4ka.jpg"
  21. Grid.RowSpan="2" HorizontalAlignment="Right"/>
  22. <DataGrid
  23. Grid.Row="1"
  24. Grid.Column="1"
  25. CanUserAddRows="False"
  26. AutoGenerateColumns="False"
  27. ItemsSource="{Binding PersonList}">
  28. <DataGrid.Columns>
  29. <DataGridTextColumn
  30. Header="Имя"
  31. Binding="{Binding name}"/>
  32. <DataGridTextColumn
  33. Header="Должность"
  34. Binding="{Binding doljnost}"/>
  35. </DataGrid.Columns>
  36. </DataGrid>
  37. <StackPanel
  38. Orientation="Vertical"
  39. Grid.RowSpan="3"
  40. VerticalAlignment="Bottom">
  41. <Button
  42. x:Name="ExitButton"
  43. Content="Выход"
  44. Click="ExitButton_Click"
  45. Height="50"/>
  46. </StackPanel>
  47. <WrapPanel
  48. Orientation="Horizontal"
  49. Grid.Column="1"
  50. MinHeight="50">
  51. </WrapPanel>
  52. </Grid>
  53. </Window>