C# Class MonoTouch.Dialog.RootElement

RootElements are responsible for showing a full configuration page.
At least one RootElement is required to start the MonoTouch.Dialogs process. RootElements can also be used inside Sections to trigger loading a new nested configuration page. When used in this mode the caption provided is used while rendered inside a section and is also used as the Title for the subpage. If a RootElement is initialized with a section/element value then this value is used to locate a child Element that will provide a summary of the configuration which is rendered on the right-side of the display. RootElements are also used to coordinate radio elements. The RadioElement members can span multiple Sections (for example to implement something similar to the ring tone selector and separate custom ring tones from system ringtones). Sections are added by calling the Add method which supports the C# 4.0 syntax to initialize a RootElement in one pass.
Inheritance: Element, IEnumerable
Afficher le fichier Open project: escoz/MonoMobile.Forms Class Usage Examples

Méthodes publiques

Свойство Type Description
CellStyle UITableViewCellStyle
DeselectAutomatically bool
RootControllerType System.Type
RowHeight float
UnevenRows bool
createOnSelected UIViewController>.Func

Méthodes publiques

Méthode Description
Add ( IEnumerable
sections ) : void
Add ( Section section ) : void
Clear ( ) : void
GetCell ( UITableView tv ) : UITableViewCell
GetEnumerator ( ) : IEnumerator

Enumerator that returns all the sections in the RootElement.

GetHeight ( UITableView tableView, NSIndexPath indexPath ) : float
GetSectionForID ( string name ) : Section
Insert ( int idx, Section section ) : void

Inserts a new section into the RootElement

This inserts the specified list of sections (a params argument) into the root using the Fade animation.

Insert ( int idx, UITableViewRowAnimation anim ) : void

Inserts a new section into the RootElement

This inserts the specified list of sections (a params argument) into the root using the specified animation.

Reload ( Element element, UITableViewRowAnimation animation ) : void
Reload ( Section section, UITableViewRowAnimation animation ) : void
Remove ( Section s ) : void
Remove ( Section s, UITableViewRowAnimation anim ) : void
RemoveAt ( int idx ) : void

Removes a section at a specified location

RemoveAt ( int idx, UITableViewRowAnimation anim ) : void

Removes a section at a specified location using the specified animation

RootElement ( string caption ) : System
RootElement ( string caption, UIViewController>.Func createOnSelected ) : System
RootElement ( string caption, Group group ) : System
RootElement ( string caption, int section, int element ) : System
Selected ( DialogViewController dvc, UITableView tableView, NSIndexPath path ) : void
this ( int idx ) : Section

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void
MakeViewController ( ) : UIViewController

Creates the UIViewController that will be pushed by this RootElement

PrepareDialogViewController ( UIViewController dvc ) : void

This method does nothing by default, but gives a chance to subclasses to customize the UIViewController before it is presented

Private Methods

Méthode Description
GetSectionForID ( string name, RootElement element ) : Section
IndexOf ( Section target ) : int
MakeIndexSet ( int start, int count ) : NSIndexSet
PathForRadio ( int idx ) : NSIndexPath
Prepare ( ) : void

Method Details

Add() public méthode

public Add ( IEnumerable
sections ) : void
sections IEnumerable
Résultat void

Add() public méthode

public Add ( Section section ) : void
section Section
Résultat void

Clear() public méthode

public Clear ( ) : void
Résultat void

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

GetCell() public méthode

public GetCell ( UITableView tv ) : UITableViewCell
tv UITableView
Résultat UITableViewCell

GetEnumerator() public méthode

Enumerator that returns all the sections in the RootElement.
public GetEnumerator ( ) : IEnumerator
Résultat IEnumerator

GetHeight() public méthode

public GetHeight ( UITableView tableView, NSIndexPath indexPath ) : float
tableView UITableView
indexPath NSIndexPath
Résultat float

GetSectionForID() public méthode

public GetSectionForID ( string name ) : Section
name string
Résultat Section

Insert() public méthode

Inserts a new section into the RootElement
This inserts the specified list of sections (a params argument) into the root using the Fade animation.
public Insert ( int idx, Section section ) : void
idx int /// The index where the section is added ///
section Section
Résultat void

Insert() public méthode

Inserts a new section into the RootElement
This inserts the specified list of sections (a params argument) into the root using the specified animation.
public Insert ( int idx, UITableViewRowAnimation anim ) : void
idx int /// The index where the section is added ///
anim UITableViewRowAnimation /// The type. ///
Résultat void

MakeViewController() protected méthode

Creates the UIViewController that will be pushed by this RootElement
protected MakeViewController ( ) : UIViewController
Résultat UIViewController

PrepareDialogViewController() protected méthode

This method does nothing by default, but gives a chance to subclasses to customize the UIViewController before it is presented
protected PrepareDialogViewController ( UIViewController dvc ) : void
dvc UIViewController
Résultat void

Reload() public méthode

public Reload ( Element element, UITableViewRowAnimation animation ) : void
element Element
animation UITableViewRowAnimation
Résultat void

Reload() public méthode

public Reload ( Section section, UITableViewRowAnimation animation ) : void
section Section
animation UITableViewRowAnimation
Résultat void

Remove() public méthode

public Remove ( Section s ) : void
s Section
Résultat void

Remove() public méthode

public Remove ( Section s, UITableViewRowAnimation anim ) : void
s Section
anim UITableViewRowAnimation
Résultat void

RemoveAt() public méthode

Removes a section at a specified location
public RemoveAt ( int idx ) : void
idx int
Résultat void

RemoveAt() public méthode

Removes a section at a specified location using the specified animation
public RemoveAt ( int idx, UITableViewRowAnimation anim ) : void
idx int /// A ///
anim UITableViewRowAnimation /// A ///
Résultat void

RootElement() public méthode

public RootElement ( string caption ) : System
caption string
Résultat System

RootElement() public méthode

public RootElement ( string caption, UIViewController>.Func createOnSelected ) : System
caption string
createOnSelected UIViewController>.Func
Résultat System

RootElement() public méthode

public RootElement ( string caption, Group group ) : System
caption string
group Group
Résultat System

RootElement() public méthode

public RootElement ( string caption, int section, int element ) : System
caption string
section int
element int
Résultat System

Selected() public méthode

public Selected ( DialogViewController dvc, UITableView tableView, NSIndexPath path ) : void
dvc DialogViewController
tableView UITableView
path NSIndexPath
Résultat void

this() public méthode

public this ( int idx ) : Section
idx int
Résultat Section

Property Details

CellStyle public_oe property

public UITableViewCellStyle CellStyle
Résultat UITableViewCellStyle

DeselectAutomatically public_oe property

public bool DeselectAutomatically
Résultat bool

RootControllerType public_oe property

public Type,System RootControllerType
Résultat System.Type

RowHeight public_oe property

public float RowHeight
Résultat float

UnevenRows public_oe property

public bool UnevenRows
Résultat bool

createOnSelected public_oe property

public Func createOnSelected
Résultat UIViewController>.Func