DekGenius.com
[ Team LiB ] Previous Section Next Section

ControlPager.NET 1.1

System.Web.UI.MobileControls (system.web.mobile.dll)class

The ControlPager is used by a Form to paginate its contained controls according to the screen dimensions of the client device, provided Form.Paginate is set to True. During the pagination process, the ControlPager is submitted to the PagedControl.PaginateRecursive( ) method of the Form. The ControlPager provides the desired "weight" for the page (PageWeight) and the remaining space on the page (RemainingWeight). As a rule of thumb, each display line corresponds to 100 units.

public class ControlPager {
// Public Constructors
   public ControlPager(Form form, int pageWeight);
// Public Static Fields
   public static readonly int DefaultWeight;        // =100
   public static readonly int UseDefaultWeight;                  // =-1
// Public Instance Properties
   public int PageCount{set; get; }
   public int PageWeight{get; }
   public int RemainingWeight{set; get; }
// Public Instance Methods
   public ItemPager GetItemPager(MobileControl control, int itemCount, int itemsPerPage, int itemWeight);
   public int GetPage(int weight);
}

Passed To

ItemPager.ItemPager( ), MobileControl.PaginateRecursive( )

    [ Team LiB ] Previous Section Next Section