C# Class MonoTouch.Dialog.DialogViewController

The DialogViewController is the main entry point to use MonoTouch.Dialog, it provides a simplified API to the UITableViewController.
Inheritance: UITableViewController
显示文件 Open project: escoz/MonoMobile.Forms Class Usage Examples

Public Properties

Property Type Description
Style UITableViewStyle

Public Methods

Method Description
AccessorySelected ( NSIndexPath indexPath ) : void
ActivateController ( UIViewController controller, DialogViewController oldController ) : void

Activates a nested view controller from the DialogViewController. If the view controller is hosted in a UINavigationController it will push the result. Otherwise it will show it as a modal dialog

ClearSearchBar ( ) : void
ConfigureTableView ( ) : void
CreateSizingSource ( bool unevenRows ) : Source
DeactivateController ( bool animated ) : void

Dismisses the view controller. It either pops or dismisses based on the kind of container we are hosted in.

DialogViewController ( IntPtr ptr ) : System
DialogViewController ( RootElement root ) : System
DialogViewController ( RootElement root, bool pushing ) : System

Creates a new DialogViewController from a RootElement and sets the push status

DialogViewController ( UITableViewStyle style, RootElement root ) : System
DialogViewController ( UITableViewStyle style, RootElement root, bool pushing ) : System
DidRotate ( UIInterfaceOrientation fromInterfaceOrientation ) : void
EnableSearchCancelButton ( ) : void
FinishSearch ( ) : void

Allows the caller to programatically stop searching.

LoadView ( ) : void
MakeRefreshTableHeaderView ( RectangleF rect, bool isTop ) : RefreshTableHeaderView
MakeTableView ( ) : UITableView
OnSearchTextChanged ( string text ) : void
PerformFilter ( string text ) : void
PushRootElement ( RootElement root ) : void
ReloadComplete ( ) : void

Invoke this method to signal that a reload has completed, this will update the UI accordingly.

ReloadData ( ) : void
SearchButtonClicked ( string text ) : void
Selected ( NSIndexPath indexPath ) : void
SetupSearch ( ) : void
ShouldAutorotateToInterfaceOrientation ( UIInterfaceOrientation toInterfaceOrientation ) : bool
StartSearch ( ) : void

Allows caller to programatically activate the search bar and start the search process

TriggerBottomRefresh ( ) : void
TriggerBottomRefresh ( bool showStatus ) : void
TriggerTopRefresh ( ) : void

Invoke this method to trigger a data refresh.

This will invoke the RerfeshRequested event handler, the code attached to it should start the background operation to fetch the data and when it completes it should call ReloadComplete to restore the control state.

TriggerTopRefresh ( bool showStatus ) : void
UpdateSource ( ) : void
ViewWillAppear ( bool animated ) : void
ViewWillDisappear ( bool animated ) : void

Protected Methods

Method Description
DialogViewController ( UITableViewStyle style, bool pushing ) : System
DialogViewController ( bool pushing ) : System
PrepareRoot ( RootElement root ) : void

Method Details

AccessorySelected() public method

public AccessorySelected ( NSIndexPath indexPath ) : void
indexPath NSIndexPath
return void

ActivateController() public method

Activates a nested view controller from the DialogViewController. If the view controller is hosted in a UINavigationController it will push the result. Otherwise it will show it as a modal dialog
public ActivateController ( UIViewController controller, DialogViewController oldController ) : void
controller UIViewController
oldController DialogViewController
return void

ClearSearchBar() public method

public ClearSearchBar ( ) : void
return void

ConfigureTableView() public method

public ConfigureTableView ( ) : void
return void

CreateSizingSource() public method

public CreateSizingSource ( bool unevenRows ) : Source
unevenRows bool
return Source

DeactivateController() public method

Dismisses the view controller. It either pops or dismisses based on the kind of container we are hosted in.
public DeactivateController ( bool animated ) : void
animated bool
return void

DialogViewController() public method

public DialogViewController ( IntPtr ptr ) : System
ptr System.IntPtr
return System

DialogViewController() public method

public DialogViewController ( RootElement root ) : System
root RootElement
return System

DialogViewController() public method

Creates a new DialogViewController from a RootElement and sets the push status
public DialogViewController ( RootElement root, bool pushing ) : System
root RootElement /// The containing the information to render. ///
pushing bool /// A describing whether this is being pushed /// (NavigationControllers) or not. If pushing is true, then the back button /// will be shown, allowing the user to go back to the previous controller ///
return System

DialogViewController() public method

public DialogViewController ( UITableViewStyle style, RootElement root ) : System
style UITableViewStyle
root RootElement
return System

DialogViewController() public method

public DialogViewController ( UITableViewStyle style, RootElement root, bool pushing ) : System
style UITableViewStyle
root RootElement
pushing bool
return System

DialogViewController() protected method

protected DialogViewController ( UITableViewStyle style, bool pushing ) : System
style UITableViewStyle
pushing bool
return System

DialogViewController() protected method

protected DialogViewController ( bool pushing ) : System
pushing bool
return System

DidRotate() public method

public DidRotate ( UIInterfaceOrientation fromInterfaceOrientation ) : void
fromInterfaceOrientation UIInterfaceOrientation
return void

EnableSearchCancelButton() public method

public EnableSearchCancelButton ( ) : void
return void

FinishSearch() public method

Allows the caller to programatically stop searching.
public FinishSearch ( ) : void
return void

LoadView() public method

public LoadView ( ) : void
return void

MakeRefreshTableHeaderView() public method

public MakeRefreshTableHeaderView ( RectangleF rect, bool isTop ) : RefreshTableHeaderView
rect RectangleF
isTop bool
return RefreshTableHeaderView

MakeTableView() public method

public MakeTableView ( ) : UITableView
return UITableView

OnSearchTextChanged() public method

public OnSearchTextChanged ( string text ) : void
text string
return void

PerformFilter() public method

public PerformFilter ( string text ) : void
text string
return void

PrepareRoot() protected method

protected PrepareRoot ( RootElement root ) : void
root RootElement
return void

PushRootElement() public method

public PushRootElement ( RootElement root ) : void
root RootElement
return void

ReloadComplete() public method

Invoke this method to signal that a reload has completed, this will update the UI accordingly.
public ReloadComplete ( ) : void
return void

ReloadData() public method

public ReloadData ( ) : void
return void

SearchButtonClicked() public method

public SearchButtonClicked ( string text ) : void
text string
return void

Selected() public method

public Selected ( NSIndexPath indexPath ) : void
indexPath NSIndexPath
return void

SetupSearch() public method

public SetupSearch ( ) : void
return void

ShouldAutorotateToInterfaceOrientation() public method

public ShouldAutorotateToInterfaceOrientation ( UIInterfaceOrientation toInterfaceOrientation ) : bool
toInterfaceOrientation UIInterfaceOrientation
return bool

StartSearch() public method

Allows caller to programatically activate the search bar and start the search process
public StartSearch ( ) : void
return void

TriggerBottomRefresh() public method

public TriggerBottomRefresh ( ) : void
return void

TriggerBottomRefresh() public method

public TriggerBottomRefresh ( bool showStatus ) : void
showStatus bool
return void

TriggerTopRefresh() public method

Invoke this method to trigger a data refresh.
This will invoke the RerfeshRequested event handler, the code attached to it should start the background operation to fetch the data and when it completes it should call ReloadComplete to restore the control state.
public TriggerTopRefresh ( ) : void
return void

TriggerTopRefresh() public method

public TriggerTopRefresh ( bool showStatus ) : void
showStatus bool
return void

UpdateSource() public method

public UpdateSource ( ) : void
return void

ViewWillAppear() public method

public ViewWillAppear ( bool animated ) : void
animated bool
return void

ViewWillDisappear() public method

public ViewWillDisappear ( bool animated ) : void
animated bool
return void

Property Details

Style public_oe property

public UITableViewStyle Style
return UITableViewStyle