<Page x:Class="proverka.Baskets"
      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:proverka"
      mc:Ignorable="d" 
      d:DesignHeight="450" d:DesignWidth="800"
      Title="Baskets">

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition/>
            <RowDefinition Height="40"/>
            <RowDefinition Height="60"/>
        </Grid.RowDefinitions>
        <Grid Grid.Row="0">
            <ListView Name="listOrder">
                <ListView.ItemTemplate>
                    <DataTemplate>
                        <Border>
                            <Grid>
                                <StackPanel Orientation="Horizontal">
                                    <StackPanel>
                                        <Image Source="{Binding product.ProductPhoto}" Height="80"></Image>
                                    </StackPanel>
                                    <StackPanel>
                                        <TextBlock Text="{Binding product.ProductName}"></TextBlock>
                                        <TextBlock Text="{Binding product.ProductCost}"></TextBlock>
                                        <TextBox Uid="{Binding product.ProductArticleNumber}" Text="{Binding count}" Name="textKolvo" SelectionChanged="textKolvo_SelectionChanged"></TextBox>
                                        <Button Uid="{Binding product.ProductArticleNumber}" Name="Delet" Click="Delet_Click">Удалить</Button>
                                    </StackPanel>
                                </StackPanel>
                            </Grid>
                        </Border>
                    </DataTemplate>
                </ListView.ItemTemplate>
            </ListView>
        </Grid>
        <StackPanel Grid.Row="1">
            <ComboBox Name="street" ></ComboBox>
        </StackPanel>
        <StackPanel Grid.Row="2">
            <Button Name="nazad" Click="nazad_Click">Назад</Button>
            <Button Name="oformit" Click="oformit_Click">оформит</Button>
        </StackPanel>
    </Grid>
</Page>
