ListView supports single or multiple selection. The multiple selection feature lets the user select from a list of items in a way similar to a ListBox control. Additionally, the user can activate selected items to perform a task. For example, you could use a ListView control to display a list of files that the application can then open and utilize.

How do I add a listview control to a form?

The following code snippet adds a ListView control to the current Form: The easiest way to set properties is from the Properties Window. You can open the Properties window by pressing F4 or right-clicking on a control and selecting the “Properties” menu item.

How do I edit items in a listview?

Items are added and removed from the ListView through the Items property. The Items property allows you to access the ListView.ListViewItemCollection of the control, which provides methods for manipulating the items in the control. If you want to allow the user to edit the text of an item, you can use the LabelEdit property.

How do I use the Columns property in a listview?

The Columns property allows access to the ListView.ColumnHeaderCollection, which stores the column headers that are displayed when the View property of the control is set to Details. Items are added and removed from the ListView through the Items property.

Where can I find a sample of a simple listview?

For more samples, see the Samples portal on the Windows Dev Center. Specifically, this sample shows: Simple ListView Sample: Shows how to implement a grouped ListView using the new x:Bind and x:Phase features. Simple GridView Sample: Shows how to implement a grouped GridView using the new x:Bind and x:Phase features.

How do I specify the location of a listview?

The Location property takes a Point that specifies the starting position of the ListView on a Form. You may also use Left and Top properties to specify the location of a control from the left top corner of the Form. The Size property specifies the size of the control.

What is the tile view in listview?

The tile view, which has limited availability as described below, allows you to display the item and its subitems as a tile that contains a large icon next to the textual information. ListView supports single or multiple selection. The multiple selection feature lets the user select from a list of items in a way similar to a ListBox control.