Provides data for a IControlDesignerView.ViewEvent event that is raised when the template mode changes for a control on the design surface.
See Also: TemplateModeChangedEventArgs Members
The IControlDesignerView.ViewEvent event is raised by a designer host, such as vsprvslong, for certain actions on a control on the design surface. For example, an event is raised when you enter or exit template editing mode for a control.
The System.Web.UI.Design.ControlDesigner class supplies a default delegate to handle the IControlDesignerView.ViewEvent event. When you exit or enter template editing mode, the designer host initializes a System.Web.UI.Design.ViewEventArgs object for a ViewEvent.TemplateModeChanged event type, and then sets the ViewEventArgs.EventArgs property with a System.Web.UI.Design.TemplateModeChangedEventArgs object.
When the System.Web.UI.Design.ViewEventArgs object indicates that the template mode has changed, the default delegate in the System.Web.UI.Design.ControlDesigner class updates 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.
For more information about events and delegates, see Events and Delegates.