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
파일 보기 프로젝트 열기: escoz/MonoMobile.Forms 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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