July 2017
Beginner
466 pages
9h 37m
English
The ListView control is like what we have learned in GridView but with the catch that it displays the items in a stacked fashion within a single column. Like in the grid view, you can use the Items to add elements/data dynamically from code behind or use a data binding to its ItemsSource property to add a collection of items. You can also write the items in the XAML page to populate it, but in a static manner.
Let's have the same sample that we used in GridView, but here in a ListView control:
<ListView> <Rectangle Fill="Orange" Width="250" Height="75" Margin="4"/> <Rectangle Fill="Orange" Width="250" Height="75" Margin="4"/> <Rectangle Fill="Orange" Width="250" Height="75" Margin="4"/> <Rectangle Fill="Orange" Width="250" ...
Read now
Unlock full access