C# Класс 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.
Наследование: Element, IEnumerable
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
CellStyle UITableViewCellStyle
DeselectAutomatically bool
RootControllerType System.Type
RowHeight float
UnevenRows bool
createOnSelected UIViewController>.Func

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
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

Приватные методы

Метод Описание
GetSectionForID ( string name, RootElement element ) : Section
IndexOf ( Section target ) : int
MakeIndexSet ( int start, int count ) : NSIndexSet
PathForRadio ( int idx ) : NSIndexPath
Prepare ( ) : void

Описание методов

Add() публичный Метод

public Add ( IEnumerable
sections ) : void
sections IEnumerable
Результат void

Add() публичный Метод

public Add ( Section section ) : void
section Section
Результат void

Clear() публичный Метод

public Clear ( ) : void
Результат void

Dispose() защищенный Метод

protected Dispose ( bool disposing ) : void
disposing bool
Результат void

GetCell() публичный Метод

public GetCell ( UITableView tv ) : UITableViewCell
tv UITableView
Результат UITableViewCell

GetEnumerator() публичный Метод

Enumerator that returns all the sections in the RootElement.
public GetEnumerator ( ) : IEnumerator
Результат IEnumerator

GetHeight() публичный Метод

public GetHeight ( UITableView tableView, NSIndexPath indexPath ) : float
tableView UITableView
indexPath NSIndexPath
Результат float

GetSectionForID() публичный Метод

public GetSectionForID ( string name ) : Section
name string
Результат Section

Insert() публичный Метод

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
Результат void

Insert() публичный Метод

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. ///
Результат void

MakeViewController() защищенный Метод

Creates the UIViewController that will be pushed by this RootElement
protected MakeViewController ( ) : UIViewController
Результат UIViewController

PrepareDialogViewController() защищенный Метод

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
Результат void

Reload() публичный Метод

public Reload ( Element element, UITableViewRowAnimation animation ) : void
element Element
animation UITableViewRowAnimation
Результат void

Reload() публичный Метод

public Reload ( Section section, UITableViewRowAnimation animation ) : void
section Section
animation UITableViewRowAnimation
Результат void

Remove() публичный Метод

public Remove ( Section s ) : void
s Section
Результат void

Remove() публичный Метод

public Remove ( Section s, UITableViewRowAnimation anim ) : void
s Section
anim UITableViewRowAnimation
Результат void

RemoveAt() публичный Метод

Removes a section at a specified location
public RemoveAt ( int idx ) : void
idx int
Результат void

RemoveAt() публичный Метод

Removes a section at a specified location using the specified animation
public RemoveAt ( int idx, UITableViewRowAnimation anim ) : void
idx int /// A ///
anim UITableViewRowAnimation /// A ///
Результат void

RootElement() публичный Метод

public RootElement ( string caption ) : System
caption string
Результат System

RootElement() публичный Метод

public RootElement ( string caption, UIViewController>.Func createOnSelected ) : System
caption string
createOnSelected UIViewController>.Func
Результат System

RootElement() публичный Метод

public RootElement ( string caption, Group group ) : System
caption string
group Group
Результат System

RootElement() публичный Метод

public RootElement ( string caption, int section, int element ) : System
caption string
section int
element int
Результат System

Selected() публичный Метод

public Selected ( DialogViewController dvc, UITableView tableView, NSIndexPath path ) : void
dvc DialogViewController
tableView UITableView
path NSIndexPath
Результат void

this() публичный Метод

public this ( int idx ) : Section
idx int
Результат Section

Описание свойств

CellStyle публичное свойство

public UITableViewCellStyle CellStyle
Результат UITableViewCellStyle

DeselectAutomatically публичное свойство

public bool DeselectAutomatically
Результат bool

RootControllerType публичное свойство

public Type,System RootControllerType
Результат System.Type

RowHeight публичное свойство

public float RowHeight
Результат float

UnevenRows публичное свойство

public bool UnevenRows
Результат bool

createOnSelected публичное свойство

public Func createOnSelected
Результат UIViewController>.Func