diff --git a/dotnet-desktop-guide/framework/wpf/controls/listview-overview.md b/dotnet-desktop-guide/framework/wpf/controls/listview-overview.md index bd6f62b..ede08b2 100644 --- a/dotnet-desktop-guide/framework/wpf/controls/listview-overview.md +++ b/dotnet-desktop-guide/framework/wpf/controls/listview-overview.md @@ -13,6 +13,9 @@ ms.assetid: 989e12b0-260e-4570-95c6-489284003ce2 # ListView Overview The control provides the infrastructure to display a set of data items in different layouts or views. For example, a user may want to display data items in a table and also to sort its columns. +> [!NOTE] +> The types referenced in this article are available in the [Code reference](#code-reference) section. + ## What Is a ListView? The control is an that is derived from . Typically, its items are members of a data collection and are represented as objects. A is a and can contain only a single child element. However, that child element can be any visual element. @@ -74,7 +77,20 @@ The control provides the infrastructure ## Creating a Custom View Mode Customized views like are derived from the abstract class, which provides the tools to display data items that are represented as objects. - + +## Code reference + +The following objects are referenced in this article: + +- `EmployeeInfoDataSource` data collection. If you're using Visual Basic .NET, the `Window` element is declared slightly different from what you see in the example code: + + :::code language="xaml" source="~/samples/snippets/csharp/VS_Snippets_Wpf/ListViewCode/CSharp/Window1.xaml" range="1-8" highlight="4,6-8" ::: + +- `EmployeeInfo` class, which is used as the type for the `EmployeeInfoDataSource` data collection. + + :::code language="csharp" source="~/samples/snippets/csharp/VS_Snippets_Wpf/ListViewCode/CSharp/Window1.xaml.cs" range="66-96" ::: + :::code language="vb" source="~/samples/snippets/visualbasic/VS_Snippets_Wpf/ListViewCode/visualbasic/window1.xaml.vb" range="63-100" ::: + ## See also -