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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.