Introduction to the Panel Control 

Use the Panel control to group controls and organize the content of an ASP.NET mobile Web page. Grouping controls in a panel provides information about how controls should be paginated at run time. As much as possible, the application will paginate all the controls in a panel onto the same screen. By grouping controls into a Panel control, applications can also hide or display the group with a single command.

MobileWebPanel screenshot

A Panel control must be placed within a Form control, another Panel control, or the template of a control. All other controls, with the exception of the StyleSheet control, DeviceSpecific control, and Form control, must also be placed within a Form or Panel control.

In addition to other controls, panels can contain literal text, which flows around other controls in the panel. Specify text colors by setting the ForeColor property. Format the text using the Bold and Italic properties. Because controls inside a panel inherit its styles, using a Panel control is a good way to apply styles to a group of controls.

Applications can customize the appearance of Panel controls for specific devices. Attaching a DeviceSpecific control to a panel makes it possible for the Panel control to use device filters. Device filters enable the use of property override values and control templates.

Panel controls support data binding, which enables applications to set many of the panel's property values at run time.

See Also


How to: Add and Configure a Panel Control




Introduction to the DeviceSpecific Control
Introduction to the Form Control
Organizing Content with Containers