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

    <Grid>
        <ScrollViewer>
            <StackPanel HorizontalAlignment="Center"  VerticalAlignment="Center">
                <StackPanel x:Name="Pokupka">
                    <TextBlock Text="Количество выбранных книг: " Name="kolvo"></TextBlock>
                    <TextBlock Text="price покупки: "></TextBlock>
                    <TextBlock Text="Скидка составила: " ></TextBlock>
                </StackPanel>
                <DataGrid Name="Table_Inf" AutoGenerateColumns="False" HorizontalAlignment="Center" IsReadOnly="False" CanUserAddRows="False">
                    <DataGrid.Columns>
                        <DataGridTemplateColumn>
                            <DataGridTemplateColumn.CellTemplate>
                                <DataTemplate x:Name="bookTempl">
                                    <StackPanel Style="{StaticResource Shablon}" Orientation="Horizontal" Initialized="StackPanel_Initialized">
                                        <MediaElement Initialized="MediaElement_Initialized" Height="200" Width="100"></MediaElement>
                                        <StackPanel Style="{StaticResource Information}" Margin="20, 0, 0, 0">
                                            <TextBlock Initialized="TextBlock_Initialized"></TextBlock>
                                            <TextBlock Initialized="TextBlock_Initialized_1"></TextBlock>
                                            <TextBlock Initialized="TextBlock_Initialized_2"></TextBlock>
                                            <TextBlock Initialized="TextBlock_Initialized_3"></TextBlock>
                                            <TextBlock Initialized="TextBlock_Initialized_4"></TextBlock>
                                            <Button Template="{StaticResource button2}" Initialized="Button_Initialized" Click="Button_Click">Выбрать</Button>
                                        </StackPanel>
                                    </StackPanel>
                                </DataTemplate>
                            </DataGridTemplateColumn.CellTemplate>
                        </DataGridTemplateColumn>
                    </DataGrid.Columns>
                </DataGrid>
                <Button Margin="0,10,0,0" Template="{StaticResource button2}">Заказать</Button>
            </StackPanel>
        </ScrollViewer>
    </Grid>
</Page>
