Style Class
Assembly: System.Web.Mobile (in system.web.mobile.dll)
[TypeConverterAttribute(typeof(ExpandableObjectConverter))] public ref class Style : IParserAccessor, ITemplateable, IStateManager, ICloneable
/** @attribute TypeConverterAttribute(System.ComponentModel.ExpandableObjectConverter) */ public class Style implements IParserAccessor, ITemplateable, IStateManager, ICloneable
TypeConverterAttribute(System.ComponentModel.ExpandableObjectConverter) public class Style implements IParserAccessor, ITemplateable, IStateManager, ICloneable
Not applicable.
The base Style class contains style characteristics common to all mobile controls. Classes that inherit from the Style class contain additional style characteristics specific to their associated control.
Due to the diversity of devices supported by mobile controls, all style properties are advisory, and might or might not be honored depending on the capabilities of the target device.
| Topic | Location |
|---|---|
| Walkthrough: Implementing a New Style | Mobile Application Reference |
| Walkthrough: Implementing a New Style | Mobile Application Reference |
| Walkthrough: Implementing a New Style | Mobile Application Reference |
The following example demonstrates three user-defined styles in a StyleSheet object. A SelectionList object holds three values that correspond to the three defined styles. The OnClick command event calls the SelectStyle function, which changes the StyleReference property of the TextView object.
- AspNetHostingPermission for operating in a hosted environment. Demand value: LinkDemand; Permission value: Minimal.
- AspNetHostingPermission for operating in a hosted environment. Demand value: InheritanceDemand; Permission value: Minimal.
Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.