Sdílet prostřednictvím


Adding ListView and GridView controls (XAML)

[ This article is for Windows 8.x and Windows Phone 8.x developers writing Windows Runtime apps. If you’re developing for Windows 10, see the latest documentation ]

The topics in this section describe how to create and use the ListView and GridView controls to display data in a customizable list or grid.

ListView

GridView

A control that presents a collection of items in a list that can scroll vertically.

A control that presents a collection of items in rows and columns that can scroll horizontally.

 

In this section

Topic Description

Quickstart: Adding ListView and GridView controls

You can use a ListView or GridView control in XAML to display your data collections, such as a list of contacts, images in a gallery, or the contents of an email inbox.

How to add a list view

This tutorial walks you through the steps to add a list view to a Windows Runtime app using C++, C#, or Visual Basic.

How to add a grid view

This tutorial walks you through the steps to add a grid view to a Windows Runtime app using C++, C#, or Visual Basic.

How to change the interaction mode

This tutorial shows you how to change the selection mode of a list or grid, and how to make an item clickable.

How to group items in a list or grid

When a ListView or GridView is bound to a data source that contains groups of data, you can display the grouped data in the list or grid.

Using virtualization with a list or grid

Learn how to use UI and data virtualization to improve the performance of a ListView or GridView.

GridView styles and templates

This topic describes the styles and templates for the GridView control.

GridViewItem styles and templates

This topic describes the styles and templates for the GridViewItem control.

GridViewHeaderItem styles and templates

This topic describes the styles and templates for the GridViewHeaderItem control.

ListView styles and templates

This topic describes the styles and templates for the ListView control.

ListViewItem styles and templates

This topic describes the styles and templates for the ListViewItem control.

ListViewHeaderItem styles and templates

This topic describes the styles and templates for the ListViewHeaderItem control.

GroupItem styles and templates

This topic describes the styles and templates for the GroupItem control.

Item templates for list layouts

This section contains item templates that you can use with a ListView control.

Item templates for grid layouts

This section contains item templates that you can use with a GridView control.