Add additional item info
Added quantity and retail price for products in UI
This commit is contained in:
parent
ea46f598bc
commit
e94a0a4b85
@ -35,7 +35,19 @@
|
|||||||
MinHeight="200" MinWidth="150" SelectedItem="{Binding SelectedProduct}">
|
MinHeight="200" MinWidth="150" SelectedItem="{Binding SelectedProduct}">
|
||||||
<ListBox.ItemTemplate>
|
<ListBox.ItemTemplate>
|
||||||
<DataTemplate>
|
<DataTemplate>
|
||||||
|
<StackPanel Orientation="Vertical">
|
||||||
<TextBlock Text="{Binding ProductName}"/>
|
<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>
|
</DataTemplate>
|
||||||
</ListBox.ItemTemplate>
|
</ListBox.ItemTemplate>
|
||||||
</ListBox>
|
</ListBox>
|
||||||
|
Loading…
Reference in New Issue
Block a user