Basket.xaml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <Window x:Class="TestApp.Basket"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:TestApp"
  7. mc:Ignorable="d"
  8. Title="Basket" Height="450" Width="800">
  9. <Grid>
  10. <Grid.RowDefinitions>
  11. <RowDefinition Height="10*"/>
  12. <RowDefinition Height="*"/>
  13. </Grid.RowDefinitions>
  14. <ListView Grid.Row="0" Name="VivodKorzini">
  15. <ListView.ItemsPanel>
  16. <ItemsPanelTemplate>
  17. <WrapPanel Orientation="Vertical"/>
  18. </ItemsPanelTemplate>
  19. </ListView.ItemsPanel>
  20. <ListView.ItemTemplate>
  21. <DataTemplate>
  22. <Border>
  23. <StackPanel>
  24. <TextBlock Text="{Binding ProductName}"/>
  25. <TextBlock Text="{Binding ProductQunatityInBasket}"/>
  26. </StackPanel>
  27. </Border>
  28. </DataTemplate>
  29. </ListView.ItemTemplate>
  30. </ListView>
  31. <Button Grid.Row="1" Click="ToCheck" Content="Оформить заказ"/>
  32. </Grid>
  33. </Window>