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 <[email protected]>
This commit is contained in:
atulll
2021-10-21 16:26:31 +00:00
committed by GitHub
co-authored by Andy De George
parent 5b28bf36d2
commit e6a2fd1bf1
@@ -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 <xref:System.Windows.Controls.DataGridTextColumn> elements with <xref:System.Windows.Controls.DataGridTemplateColumn> under the <xref:System.Windows.Controls.DataGrid> element and apply the templates to them.
4. Replace the <xref:System.Windows.Controls.DataGridTextColumn> elements with <xref:System.Windows.Controls.DataGridTemplateColumn> under the <xref:System.Windows.Controls.DataGrid> 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)]