Files
docs-desktop/dotnet-desktop-guide/framework/wpf/data/how-to-use-the-master-detail-pattern-with-hierarchical-xml-data.md
T
Andy De George da363692ff Initial WPF content migrated (#17)
* Reset branch for WPF changes

* Convert BMP to PNG; fix link-out-of-scope err

* Add snippets for WPF... 6794 files!!!!

* Add missing snippets

* update file updated between migration

* Fix paths to include

* update breadcrumb and toc

* fix index links

* fix index links

* fix index links

* fix markdown
2020-09-04 09:46:28 -07:00

1.2 KiB

title, ms.date, helpviewer_keywords, ms.assetid
title ms.date helpviewer_keywords ms.assetid
How to: Use the Master-Detail Pattern with Hierarchical XML Data 03/30/2017
data binding [WPF], Master-Detail data paradigm
Master-Detail data paradigm
eb8dbdd8-5871-42bb-a16b-04e655fea677

How to: Use the Master-Detail Pattern with Hierarchical XML Data

This example shows how to implement the master-detail scenario with XML data.

Example

This example is the XML data version of the example discussed in Use the Master-Detail Pattern with Hierarchical Data. In this example, the data is from the file League.xml. Note how the third xref:System.Windows.Controls.ListBox control tracks selection changes in the second xref:System.Windows.Controls.ListBox by binding to its xref:System.Windows.Controls.Primitives.Selector.SelectedValue%2A property.

[!code-xamlMasterDetailXml#HowTo1]
[!code-xamlMasterDetailXml#HowTo2]

See also