Displaying the Product List
The list of products exposed by the ProductsViewModel.Products
property is displayed using a ListBox
control in the ProductsView page. The ListBox
’s ItemTemplate
has various controls that are used to display the details of each Product
, as shown in the following excerpt:
<StackPanel Grid.Row="1" Margin="10" Visibility="{Binding Loaded, Converter={StaticResource BooleanToVisibilityConverter}, ConverterParameter=Visible}"> <ScrollViewer> <ListBox ItemsSource="{Binding Products}" Height="610"> <ListBox.ItemTemplate> <DataTemplate> <StackPanel Orientation="Horizontal"> <
Get Windows® Phone 8 Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.