ListView

The ListView control offers a higher customization level if compared to the ListBox and can also be used for receiving the 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 want to use such 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:

image

The View property establishes how the control will look. The GridView creates a ...

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