System.Web.UI.Design.ViewEvent.TemplateModeChanged Field

Indicates that a view event was raised for changing the template mode of a control designer.

Syntax

public static readonly ViewEvent TemplateModeChanged

Remarks

A System.Web.UI.Design.ViewEventHandler delegate method compares the ViewEventArgs.EventType property to the static System.Web.UI.Design.ViewEvent fields to determine which type of action raised the event. A System.Web.UI.Design.ViewEvent object is equal to ViewEvent.TemplateModeChanged to indicate that the template editing mode changed for a control on the design surface.

The System.Web.UI.Design.ControlDesigner class supplies a default System.Web.UI.Design.ViewEventHandler delegate. If the event type is ViewEvent.TemplateModeChanged, the delegate sets the value for the ControlDesigner.InTemplateMode property.

Custom designers that are derived from the System.Web.UI.Design.TemplatedControlDesigner class can override the TemplatedControlDesigner.OnTemplateModeChanged method to perform additional processing when the template editing mode changes for a control on the design surface.

Requirements

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