1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- <Page x:Class="WpfApp2.Pages.CartPage"
- 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:WpfApp2.Pages"
- mc:Ignorable="d"
- d:DesignHeight="450" d:DesignWidth="800"
- Title="CartPage">
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="auto"/>
- <RowDefinition Height="*"/>
- </Grid.RowDefinitions>
- <StackPanel Grid.Row="0" Orientation="Horizontal" HorizontalAlignment="Center" Margin="5">
- <Button Content="Оформить заказ" Width="128" Height="32" Click="Button_Click_1"/>
- <Button Content="Назад" Width="128" Height="32" Click="Button_Click"/>
- </StackPanel>
- <ListView Name="list" Grid.Row="1">
- <ListView.ItemTemplate>
- <DataTemplate>
- <StackPanel Orientation="Horizontal">
- <Image Width="128" Source="{Binding Image}"/>
- <StackPanel Margin="30 0 0 0" Orientation="Vertical">
- <StackPanel Orientation="Horizontal">
- <TextBlock>
- <Run Text="Название: "/>
- <Run Text="{Binding title}"/>
- </TextBlock>
- </StackPanel>
- <TextBlock>
- <Run Text="Автор: "/>
- <Run Text="{Binding author}"/>
- </TextBlock>
- <TextBlock>
- <Run Text="Количество: "/>
- <Run Text="{Binding Count}"/>
- </TextBlock>
- <TextBlock>
- <Run Text="Цена: "/>
- <Run Text="{Binding price}"/>
- </TextBlock>
- </StackPanel>
- </StackPanel>
- </DataTemplate>
- </ListView.ItemTemplate>
- </ListView>
- </Grid>
- </Page>
|