WPF Data Binding with LINQ to XML

Note

This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

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.

In This Section

Topic Description
WPF Data Binding with LINQ to XML Overview Introduces 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 Properties Provides reference information about the dynamic properties exposed by the XAttribute and XElement classes.
WPF Data Binding Using LINQ to XML Example Provides a WPF example that binds user interface components to an XML data source.

Reference

System.Xml.Linq

XElement

XAttribute

See Also

Advanced LINQ to XML Programming