Each ASP.net mobile control provides a number of style properties that you can use to customize how the control is rendered. Of course, you can also use the Stylesheet control to define style information, and then apply the style information defined by the Stylesheet control on different controls on the same page. We mentioned earlier that you not only can apply styles to different controls, you can also apply them to container controls. This ensures that the mobile controls in the container control all have a consistent user experience.
The stylesheet control should be placed on the page, not in the container control. In fact, this is the only one by one Web mobile controls that can be placed outside a container control. For all pages and mobile controls, We can define only one stylesheet control. After you have added a Stylesheet control, you can define the corresponding style properties by opening the style editor.
To create, customize, and apply a Stylesheet control on a mobile Web page, we can set the following steps:
1. Drag a Stylesheet control onto the mobile Web page.
2. Right-click the Stylesheet control and select the "Modular Options" command in the pop-up menu. A "Modular Options" dialog box appears, as shown in the following illustration. This dialog box allows you to create and edit multiple styles and device filters, which are described in detail in the later sections.
3. Clicking the Edit button will open a Style editor window, as shown in the following illustration. This window enables developers to create multiple styles based on actual requirements.