| title | ms.custom | ms.date | ms.prod | ms.reviewer | ms.suite | ms.technology | ms.tgt_pltfrm | ms.topic | helpviewer_keywords | ms.assetid | caps.latest.revision | author | ms.author | manager | |||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
How to: Use the Master-Detail Pattern with Hierarchical XML Data |
03/30/2017 |
.net-framework |
|
article |
|
eb8dbdd8-5871-42bb-a16b-04e655fea677 |
14 |
dotnet-bot |
dotnetcontent |
wpickett |
How to: Use the Master-Detail Pattern with Hierarchical XML Data
This example shows how to implement the master-detail scenario with [!INCLUDETLA2#tla_xml] data.
Example
This example is the [!INCLUDETLA2#tla_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
xref:System.Windows.HierarchicalDataTemplate
How-to Topics