Table of Contents

Class XmlDataProvider

Namespace
Alternet.UI
Assembly
Alternet.UI.dll

XmlDataProvider class, gets XmlNodes to use as source in data binding

[ContentProperty("XmlSerializer")]
public class XmlDataProvider : DataSourceProvider, INotifyPropertyChanged, ISupportInitialize, IUriContext
Inheritance
XmlDataProvider
Implements

Constructors

XmlDataProvider()

Instantiates a new instance of a XmlDataProvider

Properties

BaseUri

Implementation for BaseUri.

Document

Document Property, returns the current XmlDocument that this data source is using, if set the Source property is cleared and any inline xml data is discarded

IsAsynchronous

If true object creation will be performed in a worker thread, otherwise will be done in active context.

Source

Source property, indicated the Uri of the source Xml data file, if this property is set, then any inline xml data is discarded.

XPath

XPath property, the XPath query used for generating the DataCollection

XmlNamespaceManager

XmlNamespaceManager property, XmlNamespaceManager used for executing XPath queries. in order to set this property using markup, an XmlDataNamespaceManager resource can be used.

Methods

BeginQuery()

Prepare loading either the external XML or inline XML and produce Xml node collection. Execution is either immediately or on a background thread, see IsAsynchronous. Called by base class from InitialLoad or Refresh

EndInit()

Initialization of this element has completed; this causes a Refresh if no other deferred refresh is outstanding