Add additional item info

Added quantity and retail price for products in UI
This commit is contained in:
s459315 2022-07-24 00:23:37 +02:00
parent ea46f598bc
commit e94a0a4b85

View File

@ -35,7 +35,19 @@
MinHeight="200" MinWidth="150" SelectedItem="{Binding SelectedProduct}">
<ListBox.ItemTemplate>
<DataTemplate>
<TextBlock Text="{Binding ProductName}"/>
<StackPanel Orientation="Vertical">
<TextBlock Text="{Binding ProductName}"/>
<StackPanel Orientation="Horizontal">
<StackPanel Orientation="Horizontal">
<TextBlock Text="Price : " FontSize="14"/>
<TextBlock Text="{ Binding RetailPrice, StringFormat='{}{0:C}'}" FontSize="14"/>
</StackPanel>
<StackPanel Orientation="Horizontal" Margin="5 0 0 0 ">
<TextBlock Text="Quantity :" FontSize="14"/>
<TextBlock Text="{ Binding QuantityInStock}" FontSize="14"/>
</StackPanel>
</StackPanel>
</StackPanel>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>