From e6a2fd1bf1941ecad69437195a3316802bead516 Mon Sep 17 00:00:00 2001 From: atulll <39869656+underager@users.noreply.github.com> Date: Thu, 21 Oct 2021 21:56:31 +0530 Subject: [PATCH] Specifying ItemsSource attribute in DataGrid element (#1183) * Specifying ItemsSource attribute in DataGrid element #### Reference issues/PRs None #### What does this implements/fix? Explain your changes? The ItemsSource attribute addition in the below code sample wasn't mentioned in the documentation. #### Any Comments None * Minor; inline code elements Co-authored-by: Andy (Steve) De George <67293991+adegeo@users.noreply.github.com> --- .../walkthrough-my-first-wpf-desktop-application.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotnet-desktop-guide/framework/wpf/getting-started/walkthrough-my-first-wpf-desktop-application.md b/dotnet-desktop-guide/framework/wpf/getting-started/walkthrough-my-first-wpf-desktop-application.md index 8f6afc1..3f6352b 100644 --- a/dotnet-desktop-guide/framework/wpf/getting-started/walkthrough-my-first-wpf-desktop-application.md +++ b/dotnet-desktop-guide/framework/wpf/getting-started/walkthrough-my-first-wpf-desktop-application.md @@ -454,7 +454,7 @@ In this section, you'll update the UI for each item in the data-bound lists by u [!code-xaml[ExpenseIt#30](~/samples/snippets/csharp/VS_Snippets_Wpf/ExpenseIt/CSharp/ExpenseIt9/ExpenseReportPage.xaml#30)] -4. Replace the elements with under the element and apply the templates to them. +4. Replace the elements with under the element and apply the templates to them. Also, specify the `ItemsSource` attribute with its value in the `DataGrid` Element. [!code-xaml[ExpenseIt#32](~/samples/snippets/csharp/VS_Snippets_Wpf/ExpenseIt/CSharp/ExpenseIt9/ExpenseReportPage.xaml#32)]