From f8deee7207a1738feef3f63359e95a9f60794744 Mon Sep 17 00:00:00 2001 From: "Andy (Steve) De George" <67293991+adegeo@users.noreply.github.com> Date: Fri, 4 Feb 2022 07:47:27 -0800 Subject: [PATCH 1/2] Update listview-overview.md (#1292) --- .../wpf/controls/listview-overview.md | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) 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 - From f2c54eb6bfa2bc18e5d313e2492b2882a83144af Mon Sep 17 00:00:00 2001 From: "Andy (Steve) De George" <67293991+adegeo@users.noreply.github.com> Date: Fri, 4 Feb 2022 09:19:13 -0800 Subject: [PATCH 2/2] Update index.md (#1294) --- dotnet-desktop-guide/net/wpf/data/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotnet-desktop-guide/net/wpf/data/index.md b/dotnet-desktop-guide/net/wpf/data/index.md index e7d42d1..3bd5e3e 100644 --- a/dotnet-desktop-guide/net/wpf/data/index.md +++ b/dotnet-desktop-guide/net/wpf/data/index.md @@ -360,7 +360,7 @@ You may have noticed that the above example uses a template. In fact, the data w ## Data templating -Without the use of data templates, our app UI in the [What is data binding](#what-is-data-binding) section would look like the following. +Without the use of data templates, our app UI in the [Example of data binding](#example-of-data-binding) section would look like the following: :::image type="content" source="./media/index/demo-no-template.png" alt-text="Data Binding Demo without Data Templates":::