We recommend using Visual Studio 2017

WPF Data Binding with LINQ to XML


The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at WPF Data Binding with LINQ to XML.

This section provides information about how to use LINQ to XML as the data source for data binding in Windows Presentation Foundation (WPF) applications. This scenario relies upon special dynamic properties of the System.Xml.Linq.XAttribute and System.Xml.Linq.XElement. These dynamic properties are also documented in this section.

WPF Data Binding with LINQ to XML OverviewIntroduces the dynamic data-binding features provided by the System.Xml.Linq namespace, and explains how these features can be used as a data source for user interface components in the WPF.
LINQ to XML Dynamic PropertiesProvides reference information about the dynamic properties exposed by the XAttribute and XElement classes.
WPF Data Binding Using LINQ to XML ExampleProvides a WPF example that binds user interface components to an XML data source.




Advanced LINQ to XML Programming