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
Afficher le fichier Open project: escoz/MonoMobile.Forms Class Usage Examples

Méthodes publiques

Свойство Type Description
Style UITableViewStyle

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
DialogViewController ( UITableViewStyle style, bool pushing ) : System
DialogViewController ( bool pushing ) : System
PrepareRoot ( RootElement root ) : void

Method Details

AccessorySelected() public méthode

public AccessorySelected ( NSIndexPath indexPath ) : void
indexPath NSIndexPath
Résultat void

ActivateController() public méthode

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
Résultat void

ClearSearchBar() public méthode

public ClearSearchBar ( ) : void
Résultat void

ConfigureTableView() public méthode

public ConfigureTableView ( ) : void
Résultat void

CreateSizingSource() public méthode

public CreateSizingSource ( bool unevenRows ) : Source
unevenRows bool
Résultat Source

DeactivateController() public méthode

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
Résultat void

DialogViewController() public méthode

public DialogViewController ( IntPtr ptr ) : System
ptr System.IntPtr
Résultat System

DialogViewController() public méthode

public DialogViewController ( RootElement root ) : System
root RootElement
Résultat System

DialogViewController() public méthode

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 ///
Résultat System

DialogViewController() public méthode

public DialogViewController ( UITableViewStyle style, RootElement root ) : System
style UITableViewStyle
root RootElement
Résultat System

DialogViewController() public méthode

public DialogViewController ( UITableViewStyle style, RootElement root, bool pushing ) : System
style UITableViewStyle
root RootElement
pushing bool
Résultat System

DialogViewController() protected méthode

protected DialogViewController ( UITableViewStyle style, bool pushing ) : System
style UITableViewStyle
pushing bool
Résultat System

DialogViewController() protected méthode

protected DialogViewController ( bool pushing ) : System
pushing bool
Résultat System

DidRotate() public méthode

public DidRotate ( UIInterfaceOrientation fromInterfaceOrientation ) : void
fromInterfaceOrientation UIInterfaceOrientation
Résultat void

EnableSearchCancelButton() public méthode

public EnableSearchCancelButton ( ) : void
Résultat void

FinishSearch() public méthode

Allows the caller to programatically stop searching.
public FinishSearch ( ) : void
Résultat void

LoadView() public méthode

public LoadView ( ) : void
Résultat void

MakeRefreshTableHeaderView() public méthode

public MakeRefreshTableHeaderView ( RectangleF rect, bool isTop ) : RefreshTableHeaderView
rect RectangleF
isTop bool
Résultat RefreshTableHeaderView

MakeTableView() public méthode

public MakeTableView ( ) : UITableView
Résultat UITableView

OnSearchTextChanged() public méthode

public OnSearchTextChanged ( string text ) : void
text string
Résultat void

PerformFilter() public méthode

public PerformFilter ( string text ) : void
text string
Résultat void

PrepareRoot() protected méthode

protected PrepareRoot ( RootElement root ) : void
root RootElement
Résultat void

PushRootElement() public méthode

public PushRootElement ( RootElement root ) : void
root RootElement
Résultat void

ReloadComplete() public méthode

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

ReloadData() public méthode

public ReloadData ( ) : void
Résultat void

SearchButtonClicked() public méthode

public SearchButtonClicked ( string text ) : void
text string
Résultat void

Selected() public méthode

public Selected ( NSIndexPath indexPath ) : void
indexPath NSIndexPath
Résultat void

SetupSearch() public méthode

public SetupSearch ( ) : void
Résultat void

ShouldAutorotateToInterfaceOrientation() public méthode

public ShouldAutorotateToInterfaceOrientation ( UIInterfaceOrientation toInterfaceOrientation ) : bool
toInterfaceOrientation UIInterfaceOrientation
Résultat bool

StartSearch() public méthode

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

TriggerBottomRefresh() public méthode

public TriggerBottomRefresh ( ) : void
Résultat void

TriggerBottomRefresh() public méthode

public TriggerBottomRefresh ( bool showStatus ) : void
showStatus bool
Résultat void

TriggerTopRefresh() public méthode

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
Résultat void

TriggerTopRefresh() public méthode

public TriggerTopRefresh ( bool showStatus ) : void
showStatus bool
Résultat void

UpdateSource() public méthode

public UpdateSource ( ) : void
Résultat void

ViewWillAppear() public méthode

public ViewWillAppear ( bool animated ) : void
animated bool
Résultat void

ViewWillDisappear() public méthode

public ViewWillDisappear ( bool animated ) : void
animated bool
Résultat void

Property Details

Style public_oe property

public UITableViewStyle Style
Résultat UITableViewStyle