System.Web.UI.Design.WebControls.PanelDesigner Class

Provides design-time support in a visual designer for the System.Web.UI.WebControls.Panel control.

See Also: PanelDesigner Members

Syntax

public class PanelDesigner : System.Web.UI.Design.ReadWriteControlDesigner

Remarks

The System.Web.UI.WebControls.Panel control is used as a container for other controls, especially when controls are generated programmatically.

The System.Web.UI.Design.WebControls.PanelDesigner class provides design-time support for System.Web.UI.WebControls.Panel controls in a visual designer. However, for all new implementations of the Panel control, use the System.Web.UI.Design.WebControls.PanelContainerDesigner instead of the System.Web.UI.Design.WebControls.PanelDesigner.

In a visual designer, when you switch from Source to Design view, the markup source code that describes the associated System.Web.UI.WebControls.Panel control is parsed and a design-time version of the control is created on the design surface. When you switch back to Source view, the design-time control is persisted to markup source code and edited into the markup for the Web page.

The PanelDesigner.MapPropertyToStyle(string, object) method maps a specified property and value to a specified markup style. The PanelDesigner.OnBehaviorAttached method provides notification when a behavior is attached to the designer.

Requirements

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