XmlDataProvider::Document Property
Gets or sets the XmlDocument to use as the binding source.
Assembly: PresentationFramework (in PresentationFramework.dll)
public: property XmlDocument^ Document { XmlDocument^ get(); void set(XmlDocument^ value); }
Property Value
Type: System.Xml::XmlDocument^The XmlDocument to use as the binding source. The default value is null.
XmlDataProvider exposes the following ways to access XML data.
You can embed inline XML data using the XmlDataProvider class.
You can set the Source property to the Uri of an XML data file.
You can set this property to an XmlDocument.
XmlDataProvider performs a full refresh of all bindings on when a XmlDocument::NodeChanged event occurs. There are no optimizations for specific nodes.
If the Source property is set, then any inline XML data is discarded. If the Document property is set, then the Source property is cleared and any inline XML data is discarded.
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.
Available since 3.0