CartPage.xaml 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <Page x:Class="WpfApp2.Pages.CartPage"
  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:WpfApp2.Pages"
  7. mc:Ignorable="d"
  8. d:DesignHeight="450" d:DesignWidth="800"
  9. Title="CartPage">
  10. <Grid>
  11. <Grid.RowDefinitions>
  12. <RowDefinition Height="auto"/>
  13. <RowDefinition Height="*"/>
  14. </Grid.RowDefinitions>
  15. <StackPanel Grid.Row="0" Orientation="Horizontal" HorizontalAlignment="Center" Margin="5">
  16. <Button Content="Оформить заказ" Width="128" Height="32" Click="Button_Click_1"/>
  17. <Button Content="Назад" Width="128" Height="32" Click="Button_Click"/>
  18. </StackPanel>
  19. <ListView Name="list" Grid.Row="1">
  20. <ListView.ItemTemplate>
  21. <DataTemplate>
  22. <StackPanel Orientation="Horizontal">
  23. <Image Width="128" Source="{Binding Image}"/>
  24. <StackPanel Margin="30 0 0 0" Orientation="Vertical">
  25. <StackPanel Orientation="Horizontal">
  26. <TextBlock>
  27. <Run Text="Название: "/>
  28. <Run Text="{Binding title}"/>
  29. </TextBlock>
  30. </StackPanel>
  31. <TextBlock>
  32. <Run Text="Автор: "/>
  33. <Run Text="{Binding author}"/>
  34. </TextBlock>
  35. <TextBlock>
  36. <Run Text="Количество: "/>
  37. <Run Text="{Binding Count}"/>
  38. </TextBlock>
  39. <TextBlock>
  40. <Run Text="Цена: "/>
  41. <Run Text="{Binding price}"/>
  42. </TextBlock>
  43. </StackPanel>
  44. </StackPanel>
  45. </DataTemplate>
  46. </ListView.ItemTemplate>
  47. </ListView>
  48. </Grid>
  49. </Page>