<Page x:Class="examPrepare.Pages.Catalog"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      xmlns:local="clr-namespace:examPrepare.Pages"
      mc:Ignorable="d" 
      d:DesignHeight="450" d:DesignWidth="800"
      Title="Catalog"
      Background="White">

    <Grid>
      <ListBox x:Name="ProductsList" ItemsSource="{Binding Products}">
        <ListBox.ItemTemplate>
          <DataTemplate>
            <Grid>
            <Grid.ColumnDefinitions>
              <ColumnDefinition Width="1*"></ColumnDefinition>
              <ColumnDefinition Width="1*"></ColumnDefinition>
            </Grid.ColumnDefinitions>
            <Grid.RowDefinitions>
              <RowDefinition Height="1*"></RowDefinition>
              <RowDefinition Height="1*"></RowDefinition>
              <RowDefinition Height="1*"></RowDefinition>
            </Grid.RowDefinitions>
            <TextBlock Grid.Row="0" Grid.Column="0" Text="{Binding Id}"/>
            <TextBlock Grid.Row="1" Grid.Column="0" Text="{Binding Name}"/>
            <TextBlock Grid.Row="2" Grid.Column="0" Text="{Binding Description}"/>
            <TextBlock Grid.Row="0" Grid.Column="1" Text="{Binding Manufacturer}"/>
            <TextBlock Grid.Row="1" Grid.Column="1" Text="{Binding Price}"/>
            <Button Uid="{Binding Id}" Grid.Row="2" Grid.Column="1" Click="Button_Click" Content="Заказать" />
          </Grid> 
          </DataTemplate> 
        </ListBox.ItemTemplate> 
      </ListBox>
    </Grid>
</Page>
