pgHotels.xaml 1.1 KB

1234567891011121314151617181920212223242526
  1. <Page x:Class="WpfApp1.pgHotels"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:WpfApp1"
  7. mc:Ignorable="d"
  8. d:DesignHeight="450" d:DesignWidth="800"
  9. Title="pgHotels">
  10. <Grid>
  11. <ScrollViewer HorizontalScrollBarVisibility="Auto">
  12. <StackPanel>
  13. <DataGrid Name="dgHotels" AutoGenerateColumns="False">
  14. <DataGrid.Columns>
  15. <DataGridTextColumn Binding="{Binding Name}"></DataGridTextColumn>
  16. <DataGridTextColumn Binding="{Binding CountOfStars}"></DataGridTextColumn>
  17. <DataGridTextColumn Binding="{Binding Country.Name}"></DataGridTextColumn>
  18. </DataGrid.Columns>
  19. </DataGrid>
  20. </StackPanel>
  21. </ScrollViewer>
  22. </Grid>
  23. </Page>