Developers have the option to stay within the abstraction layer provide by the Framework, or
they can specify alternate content to render on specific devices if it??™s desired or required. The
flexible detection engine built into ASP.NET makes this magic happen, greatly simplifying
mobile web development without giving up fine-grained control.
The final two sections of this chapter cover the custom control opportunities discussed
earlier in this book for traditional ASP.NET development: user controls and custom controls.
Both techniques are available for mobile server control development, with the addition of
mobile device capability management. The section covering mobile controls in this chapter
examines how mobile controls emit device-specific output with the help of device adapters.
The StyleSheet Control
A couple of options are available to apply styles to controls in the mobile control framework.
One option is to configure style attributes on individual controls. This results in increased
maintenance as the number of individually configured controls increases, which is not optimal.
The other option is the StyleSheet control, which provides a method to attach a consistent
look and feel across multiple controls, centralizing style maintenance to one location.
Pages:
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633