iOS Guides | Samples

MonoTouch.UIKit.UIPageControl Class

A UIControl that displays a pagination control.

See Also: UIPageControl

Syntax

[MonoTouch.Foundation.Register("UIPageControl", true)]
public class UIPageControl : UIControl, IDisposable

See Also

Remarks

This control appears as a bar on which a number of dots represent available pages (a similar control is at the bottom of the iOS home screen). When the application user selects one of the pages, it raises the UIControl.ValueChanged event. The application developer can then use the UIPageControl.CurrentPage property to determine what page to display.

When the number of pages gets large, it may be impossible to display a separate dot per page. In that situation, the UIPageControl clips the display of page indicators.

Related content

Requirements

Namespace: MonoTouch.UIKit
Assembly: monotouch (in monotouch.dll)
Assembly Versions: 0.0.0.0

The members of MonoTouch.UIKit.UIPageControl are listed below.

See Also: UIControl

Public Constructors

Default constructor that initializes a new instance of this class with no parameters.
A constructor that initializes the object from the data stored in the unarchiver object.
Constructor to call on derived classes to skip initialization and merely allocate the object.
Initializes the UIPageControl with the specified frame.
A constructor used when creating managed representations of unmanaged objects; Called by the runtime.

Public Properties

[read-only]
static
AppearanceUIPageControl+UIPageControlAppearance. Strongly-typed property that returns the UIAppearance class for this class.
[read-only]
override
ClassHandleIntPtr. The handle for this class.
CurrentPageInt32. The current page, indicated by a white dot.
CurrentPageIndicatorTintColorUIColor. The tint to be used for the current-page indicator.
DefersCurrentPageDisplayBoolean. If true, the current page indicator is not rendered until UpdateCurrentPageDisplay is called. Default is false.
HidesForSinglePageBoolean. Whether the page control is hidden if there is only one page.
PageIndicatorTintColorUIColor. The tint used for the page indicator.
PagesInt32. The number of pages shown (as dots).

Public Methods

static
AppearanceWhenContainedIn(params Type[]) : UIPageControl+UIPageControlAppearance
Returns a strongly typed UIAppearance for instances of this class when the view is hosted in the specified hierarchy.
static
GetAppearance(UITraitCollection) : UIPageControl+UIPageControlAppearance
Returns an appearance proxy for the specified traits.
static
GetAppearance(UITraitCollection, params Type[]) : UIPageControl+UIPageControlAppearance
Returns an appearance proxy for the specified traits when found in the containers containment hierarchy.
static
GetAppearance<T>() : UIPageControl+UIPageControlAppearance
Obtains the appearance proxy UIPageControlAppearance for the subclass of UIPageControl.
static
GetAppearance<T>(UITraitCollection) : UIPageControl+UIPageControlAppearance
Obtains the appearance proxy UIPageControlAppearance for the subclass of UIPageControl.
static
GetAppearance<T>(UITraitCollection, params Type[]) : UIPageControl+UIPageControlAppearance
Obtains the appearance proxy UIPageControlAppearance for the subclass of UIPageControl that has the specified trait collection when the view is hosted in the specified hierarchy.
SizeForNumberOfPages(Int32) : SizeF
The size this UIPageControl's Bounds needs to be to accomodate the specified number of pages.
UpdateCurrentPageDisplay()
Updates the page indicator to the current page.