
784
|
Chapter 40: The System.Web.UI.MobileControls Namespace
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
Subclasses
PagerStyle
Returned By
System.Web.UI.MobileControls.Adapters.ControlAdapter.Style, MobileControl.CreateStyle( ),
ObjectList.{CommandStyle, LabelStyle}, StyleSheet.this
Passed To
System.Web.UI.MobileControls.Adapters.HtmlMobileTextWriter.{EnterStyle( ), ExitStyle( )},
System.Web.UI.MobileControls.Adapters.MobileTextWriter.{EnterFormat( ), EnterLayout( ),
EnterStyle( ), ExitFormat( ), ExitLayout( ), ExitStyle( )}, ObjectList.{CommandStyle, Label-
Style}, StyleSheet.this
StyleSheet
System.Web.UI.MobileControls (system.web.mobile.dll)
.NET 1.1, disposable
class
Style sheets are used to give mobile controls a consistent appearance. To use a style
sheet, first add it to a mobile web page or user control. You can then create one or
more Style objects for the control and add them to the Styles collection. (You can do this
programmatically, or at design-time using the StyleSheet property builder.) Once you
have created at least one style, you can assign it to any controls on the page.
You can also use external style sheets to provide a consistent appearance for multiple
pages. An external style sheet is a StyleSheet placed in a separate .ascx (user control) file.
public static readonly object BackColorKey; // =System.Web.UI.MobileControls.Style+Property ...