Presenting Data with the ListView Control

The ListView control offers a higher customization level if compared to the ListBox and can also be used for receiving user input other than just presenting data. Same as for the ListBox, you might want to consider the DataGrid control for advanced data-binding techniques. To present a series of items, the ListView can be declared the same way as the ListBox. Things are better when you instead use this control with columns, such as in a grid. Consider the following XAML code that declares a ListView data-bound to the list of running processes:

<ListView Name="ListView1" ItemsSource="{Binding}">    <ListView.View>        <GridView>            <GridViewColumn Header="Process ...

Get Visual Basic 2015 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.