System.Web.UI.Design.XmlDataFileEditor Class

Provides a design-time user interface for selecting an XML data file.

See Also: XmlDataFileEditor Members


public class XmlDataFileEditor : UrlEditor


An System.Web.UI.Design.XmlDataFileEditor object is used at design time to select and edit a URL for an XML data file (.xml), and then assign the URL to a control property. For example, the System.Web.UI.WebControls.XmlDataSource control uses the System.Web.UI.Design.XmlDataFileEditor class at design time to set the value of the System.Web.UI.WebControls.XmlDataSource.DataFile property.

Use the System.ComponentModel.EditorAttribute attribute to associate the System.Web.UI.Design.XmlDataFileEditor with a property. When the associated property is edited on the design surface, the designer host calls the erload:System.Web.UI.Design.UrlEditor.EditValue method. The erload:System.Web.UI.Design.UrlEditor.EditValue method uses the erload:System.Web.UI.Design.UrlBuilder.BuildUrl method, which in turn displays a user interface for selecting the URL, and then returns the URL that is selected by the user. The erload:System.Web.UI.Design.UrlEditor.GetEditStyle method indicates the display style of the user interface.

Derive a class from the System.Web.UI.Design.XmlDataFileEditor to define a custom editor for an XML data property. For example, a derived class can override the erload:System.Web.UI.Design.UrlEditor.EditValue method, and then call the erload:System.Web.UI.Design.UrlBuilder.BuildUrl method with a custom XmlDataFileEditor.Filter or XmlDataFileEditor.Caption value.


Namespace: System.Web.UI.Design
Assembly: System.Design (in System.Design.dll)
Assembly Versions: