MobileControl | .NET 1.1, disposable |
System.Web.UI.MobileControls (system.web.mobile.dll) | abstract class |
All mobile controls derive from the base
MobileControl class (which in turn derives from
the even more basic System.Web.UI.Control class).
When creating your own mobile controls, you can derive from
MobileControl or a specific mobile control class.
Some of the functionality added by the
MobileControl class includes pagination support,
basic style settings, and support for device-specific control
adapters (specified by the Adapter property).
public abstract class MobileControl : System.Web.UI.Control, System.Web.UI.IAttributeAccessor {
// Protected Constructors
protected MobileControl( );
// Public Instance Properties
public IControlAdapter Adapter{get; }
public virtual Alignment Alignment{set; get; }
public virtual Color BackColor{set; get; }
public virtual bool BreakAfter{set; get; }
public StateBag CustomAttributes{get; }
public DeviceSpecific DeviceSpecific{set; get; }
public int FirstPage{set; get; }
public virtual FontInfo Font{get; }
public virtual Color ForeColor{set; get; }
public Form Form{get; }
public virtual bool IsTemplated{get; }
public int LastPage{set; get; }
public MobilePage MobilePage{get; }
public virtual string StyleReference{set; get; }
public virtual int VisibleWeight{get; }
public virtual Wrapping Wrapping{set; get; }
// Protected Instance Properties
protected string InnerText{set; get; }
protected virtual bool PaginateChildren{get; }
protected internal virtual Style Style{get; }
// Public Instance Methods
public virtual void AddLinkedForms(System.Collections.IList linkedForms);
public virtual void CreateDefaultTemplatedUI(bool doDataBind);
public virtual void EnsureTemplatedUI( );
public virtual ITemplate GetTemplate(string templateName);
public bool IsVisibleOnPage(int pageNumber);
public virtual void PaginateRecursive(ControlPager pager);
public void RenderChildren(System.Web.UI.HtmlTextWriter writer);// overrides System.Web.UI.Control
public Form ResolveFormReference(string formID);
public string ResolveUrl(string relativeUrl); // overrides System.Web.UI.Control
// Protected Instance Methods
protected override void AddedControl(System.Web.UI.Control control, int index); // overrides System.Web.UI.Control
protected override void AddParsedSubObject(object obj); // overrides System.Web.UI.Control
protected virtual Style CreateStyle( );
protected virtual void CreateTemplatedUI(bool doDataBind);
protected virtual bool IsFormSubmitControl( );
protected virtual void LoadPrivateViewState(object state);
protected override void LoadViewState(object savedState); // overrides System.Web.UI.Control
protected override void OnDataBinding(EventArgs e); // overrides System.Web.UI.Control
protected override void OnInit(EventArgs e); // overrides System.Web.UI.Control
protected override void OnLoad(EventArgs e); // overrides System.Web.UI.Control
protected virtual void OnPageChange(int oldPageIndex, int newPageIndex);
protected override void OnPreRender(EventArgs e); // overrides System.Web.UI.Control
protected virtual void OnRender(System.Web.UI.HtmlTextWriter writer);
protected override void OnUnload(EventArgs e); // overrides System.Web.UI.Control
protected override void RemovedControl(System.Web.UI.Control control);// overrides System.Web.UI.Control
protected override void Render(System.Web.UI.HtmlTextWriter writer);// overrides System.Web.UI.Control
protected virtual object SavePrivateViewState( );
protected override object SaveViewState( ); // overrides System.Web.UI.Control
protected override void TrackViewState( ); // overrides System.Web.UI.Control
}
Hierarchy
System.Object
System.Web.UI.Control(System.ComponentModel.IComponent,
System.IDisposable,
System.Web.UI.IParserAccessor,
System.Web.UI.IDataBindingsAccessor)
MobileControl(System.Web.UI.IAttributeAccessor)
Subclasses
AdRotator, Calendar,
Image, PagedControl,
Panel, SelectionList,
StyleSheet, TextControl,
ValidationSummary
Returned By
System.Web.UI.MobileControls.Adapters.ControlAdapter.Control,
IControlAdapter.Control,
Style.Control
Passed To
System.Web.UI.MobileControls.Adapters.ControlAdapter.Control,
ControlPager.GetItemPager( ),
IControlAdapter.Control,
ItemPager.ItemPager( ),
MobilePage.{GetControlAdapter( ),
GetPrivateViewState( )}