Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
XPath Property

XmlDataProvider.XPath Property

Gets or sets the XPath query used to generate the data collection.

Namespace:  System.Windows.Data
Assembly:  PresentationFramework (in PresentationFramework.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation

public string XPath { get; set; }
<object XPath="string" .../>

Property Value

Type: System.String
The XPath query used to generate the data collection. The default is an empty string.

The XmlNode.SelectNodes method handles the XPath expressions from the XPath property. XPath functions are not supported. For XPath expression information, see the SelectNodes documentation and some examples provided in the Example section.

Setting the following properties will implicitly cause this XmlDataProvider object to refresh: Source, Document, XmlNamespaceManager, and XPath. When changing multiple refresh-causing properties, the use of DeferRefresh is recommended.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1
Show:
© 2015 Microsoft