WindowsBasket.xaml 1.8 KB

123456789101112131415161718192021222324252627282930313233
  1. <Window x:Class="WpfAppProduct.WindowsBasket"
  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:WpfAppProduct"
  7. mc:Ignorable="d"
  8. Title="WindowsBasket" Height="450" Width="800">
  9. <Grid>
  10. <ListView Name="LvPr" Grid.Row="1" ScrollViewer.HorizontalScrollBarVisibility="Disabled" HorizontalAlignment="Stretch" HorizontalContentAlignment="Stretch">
  11. <ListView.ItemTemplate>
  12. <DataTemplate>
  13. <Border BorderThickness="1" BorderBrush="Black" CornerRadius="1">
  14. <Grid>
  15. <Grid.ColumnDefinitions>
  16. <ColumnDefinition Width="*"/>
  17. <ColumnDefinition Width="2*"/>
  18. </Grid.ColumnDefinitions>
  19. <StackPanel Orientation="Horizontal">
  20. <Image Width="150"/>
  21. </StackPanel>
  22. <StackPanel Grid.Column="1">
  23. <TextBlock Text="{Binding Product.ProductName}" FontSize="14" FontFamily="Arial"/>
  24. <TextBlock Text="{Binding Product.Desc}" FontSize="14" FontFamily="Arial"/>
  25. <TextBlock Text="{Binding Product.Price}" FontSize="14" FontFamily="Arial"/>
  26. </StackPanel>
  27. </Grid>
  28. </Border>
  29. </DataTemplate>
  30. </ListView.ItemTemplate>
  31. </ListView>
  32. </Grid>
  33. </Window>