System.Web.UI.Design.XslTransformFileEditor Class

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

See Also: XslTransformFileEditor Members


public class XslTransformFileEditor : UrlEditor


An System.Web.UI.Design.XslTransformFileEditor object is used at design time to select and edit a URL for a XML transform file (.xsl) and to assign the URL to a control property. For example, the System.Web.UI.WebControls.XmlDataSource control uses the System.Web.UI.Design.XslTransformFileEditor class at design time to set the value of the System.Web.UI.WebControls.XmlDataSource.TransformFile property.

Use the System.ComponentModel.EditorAttribute attribute to associate the System.Web.UI.Design.XslTransformFileEditor 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.XslTransformFileEditor to define a custom editor for an XML transform file URL 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 XslTransformFileEditor.Filter or XslTransformFileEditor.Caption value.


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