XhtmlControlAdapter Members
.NET Framework 3.0
Provides a default control adapter for rendering mobile controls in XHTML markup.
The following tables list the members exposed by the XhtmlControlAdapter type.
| Name | Description | |
|---|---|---|
| NotSecondaryUI | A value returned by the SecondaryUIMode property, indicating that the adapter is not currently in secondary UI mode. |
(see also
Protected Properties
)
Top
| Name | Description | |
|---|---|---|
| Control | Returns a strongly typed reference to the associated control.(inherited from ControlAdapter) |
| Device | Returns the device capabilities object associated with the request.(inherited from ControlAdapter) |
| ItemWeight | Accesses the approximate weight of a single item in the control.(inherited from ControlAdapter) |
| Page | Returns the page associated with the device adapter.(inherited from ControlAdapter) |
| Style | Returns the style object associated with the control to which the device adapter is attached.(inherited from ControlAdapter) |
| VisibleWeight | Gets or sets the approximate weight of the control, in characters.(inherited from ControlAdapter) |
| Name | Description | |
|---|---|---|
| CssLocation | Indicates whether the style sheet is located as an external physical file, is internal to the current page, is stored in the current session state, or is stored in the application cache. |
| DocumentType | Indicates the type of XHTML markup used to render the current document. |
| PageAdapter | Gets the page adapter for the page on which the associated control resides. |
| SecondaryUIMode | Gets the current secondary UI mode. |
| StyleSheetLocationAttributeValue | Gets the value of the CssLocation attribute, if it exists, from the form in which it is contained. |
| StyleSheetStorageApplicationSetting | Gets the value of the XhtmlCssState configuration setting in the appSettings section of the Web.config file. |
(see also
Protected Methods
)
Top
| Name | Description | |
|---|---|---|
| CreateTemplatedUI | Called by a control to create a templated user interface (UI). (inherited from ControlAdapter) |
| Equals | Overloaded. Determines whether two Object instances are equal. (inherited from Object) |
| GetHashCode | Serves as a hash function for a particular type. (inherited from Object) |
| GetType | Gets the Type of the current instance. (inherited from Object) |
| HandlePostBackEvent | Returns true if the event was handled. (inherited from ControlAdapter) |
| LoadAdapterState | Overridden. Loads view state data specific to this adapter. |
| LoadPostData | Returns true if the adapter handles loading the post data. (inherited from ControlAdapter) |
| OnInit | Called after an object, such as a form or a page, is initialized. (inherited from ControlAdapter) |
| OnLoad | Loads data that pertains to a control, a page, or a device adapter. (inherited from ControlAdapter) |
| OnPreRender | Called by the control's OnPreRender method, to perform adapter-specific work prior to rendering. (inherited from ControlAdapter) |
| OnUnload | Unloads data that pertains to a control, a page, or a device adapter. (inherited from ControlAdapter) |
| ReferenceEquals | Determines whether the specified Object instances are the same instance. (inherited from Object) |
| Render | Overloaded. Overridden. Displays the associated control and all of its child controls on the client. |
| SaveAdapterState | Overridden. Saves view-state data specific to this adapter. |
| ToString | Returns a String that represents the current Object. (inherited from Object) |
| Name | Description | |
|---|---|---|
| CalculateOptimumPageWeight | Determines the optimum page weight for the device. (inherited from ControlAdapter) |
| ClearPendingBreakIfDeviceBreaksOnBlockLevel | Clears a pending break if the target device breaks on block elements. |
| ConditionalClearCachedEndTag | Clears the given text writer's current end tag if certain conditions are met. |
| ConditionalClearPendingBreak | Clears a pending break in the target device if certain conditions are met. |
| ConditionalEnterFormat | Begins a section with the opening tag and attributes that implement the formats of the specified style, if certain conditions are met. |
| ConditionalEnterLayout | Begins a section with the opening tag and attributes that implement the layout of the specified style, if certain conditions are met. |
| ConditionalEnterStyle | Overloaded. Begins a new element that applies the given styles if certain conditions are met. |
| ConditionalExitFormat | Ends a block that has been using the character formatting from a specified style, if certain conditions are met. |
| ConditionalExitLayout | Ends a block that has been using the layout formatting from a specified style, if certain conditions are met. |
| ConditionalExitStyle | Ends a </span> element that has been using the layout and character formatting from a specified style, if certain conditions are met. |
| ConditionalPopPhysicalCssClass | Removes the current cascading style sheet class name from the XhtmlMobileTextWriter object, if certain conditions are met. |
| ConditionalRenderClassAttribute | Puts a class name attribute on the next element to be rendered, if certain conditions are met. |
| ConditionalRenderClosingDivElement | Renders a closing </div> tag if certain conditions are met. |
| ConditionalRenderClosingSpanElement | Renders a closing </span> element if certain conditions are met. |
| ConditionalRenderCustomAttribute | Overloaded. Gets the value of the specified custom attribute from the associated control and renders it on the next element if certain conditions are met. |
| ConditionalRenderOpeningDivElement | Renders an opening tag for a <div> element if certain conditions are met. |
| ConditionalRenderOpeningSpanElement | Renders an opening tag for a <span> element, if certain conditions are met. |
| ConditionalSetPendingBreak | Sets a pending break if certain conditions are met. |
| ConditionalSetPendingBreakAfterInline | Sets a pending break after inline elements if certain conditions are met. |
| ExitSecondaryUIMode | Exits any secondary UI mode for the control. |
| Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (inherited from Object) |
| GetCustomAttributeValue | Overloaded. Gets the value of the specified custom attribute. |
| GetDefaultLabel | Returns the localized default string for the label control. (inherited from ControlAdapter) |
| MemberwiseClone | Creates a shallow copy of the current Object. (inherited from Object) |
| PreprocessQueryString | Gets the portion of the given query string that contains parameters for processing the request. |
| RenderAsHiddenInputField | Renders hidden field text for a control. |
| RenderBeginLink | Overloaded. Renders the opening tag of a link. |
| RenderChildren | Renders children of the control. (inherited from ControlAdapter) |
| RenderClosingListTag | Renders a closing tag for a specified list element. |
| RenderEndLink | Renders a closing tag (</a>) for a link element. |
| RenderOffPageVariables | Renders hidden postback variables for child controls that are not visible due to pagination or secondary UI. |
| RenderOpeningListTag | Renders an opening tag for the specified tag name. |
| RenderPostBackEventAsAnchor | Overloaded. Renders a postback event as a link on the page. |
Reference
XhtmlControlAdapter ClassSystem.Web.UI.MobileControls.Adapters.XhtmlAdapters Namespace
ControlAdapter
Other Resources
ASP.NET and XHTML ComplianceArchitectural Overview of Adaptive Rendering
Adapter Sets Functionality
Control and Adapter Interaction
Introduction to Device Filtering in ASP.NET
Community Additions
ADD
Show: