Style Class
Organizes style characteristics of an ASP.NET mobile control.
Assembly: System.Web.Mobile (in System.Web.Mobile.dll)
[TypeConverterAttribute(typeof(ExpandableObjectConverter))] [AspNetHostingPermissionAttribute(SecurityAction::LinkDemand, Level = AspNetHostingPermissionLevel::Minimal)] [AspNetHostingPermissionAttribute(SecurityAction::InheritanceDemand, Level = AspNetHostingPermissionLevel::Minimal)] public ref class Style : IParserAccessor, ITemplateable, IStateManager, ICloneable
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 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.