As an example, the mobile web form takes a custom style class named
PagerStyle that provides an easy way for the control user to customize pagination behavior.
PagerStyle provides the following attributes to customize the multipage navigation UI:
??? NextPageText
??? PageLabel
??? PreviousPageText
These attributes permit you to customize the UI. For example, if you are programmatically
creating a form with Next and Previous links to the appropriate pages, you can override the text
for these links by setting the value of the properties previously mentioned. You can use methods
such as GetNextPageText, GetPreviousPageText, or GetPageLabel to retrieve the current value of the
properties. This chapter??™s StyleSheetInline.aspx Mobile Web Page demonstration web form in
the source code that accompanies this book provides an example of using the StyleSheetInline
control. We next discuss a method to store the StyleSheet control in an external file.
The StyleSheetExternal Mobile Web Page
In the previous example, we embedded a StyleSheet control into the mobile web page to make
Style attributes available to mobile forms and controls. This model of embedding a style sheet
into the mobile web page requires maintenance on each mobile page??™s StyleSheet object to
keep all the mobile web pages in a web application consistent.
Pages:
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636