C# Class CrossUI.iOS.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: MvvmCross/MvvmCross Class Usage Examples

Méthodes publiques

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

Méthodes publiques

Méthode Description
ActivateController ( UIViewController controller ) : 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

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.

Deselected ( NSIndexPath indexPath ) : void
DialogViewController ( IntPtr handle ) : CoreGraphics
DialogViewController ( RootElement root ) : CoreGraphics
DialogViewController ( RootElement root, bool pushing ) : CoreGraphics

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

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

Allows the caller to programatically stop searching.

ForceDirty ( bool newDirty = true ) : void
LoadView ( ) : void
MakeRefreshTableHeaderView ( CGRect rect ) : RefreshTableHeaderView
MakeTableView ( CGRect bounds, UITableViewStyle style ) : UITableView
OnSearchTextChanged ( string text ) : void
PerformFilter ( string text ) : void
ReloadComplete ( ) : void

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

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

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

TriggerRefresh ( ) : 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.

ViewWillAppear ( bool animated ) : void
ViewWillDisappear ( bool animated ) : void

Méthodes protégées

Méthode Description
AdjustLayoutForViewWillAppear ( ) : void
ConfigureTableView ( ) : void
CreatSearchDelegate ( ) : UISearchBarDelegate
HeightForRow ( UITableView containedTableView, NSIndexPath indexPath ) : nfloat
ReloadIfDirty ( ) : void
SetupSearch ( ) : void
TriggerRefresh ( bool showStatus ) : void
UpdateSource ( ) : void

Method Details

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 ) : void
controller UIViewController
Résultat void

AdjustLayoutForViewWillAppear() protected méthode

protected AdjustLayoutForViewWillAppear ( ) : void
Résultat void

ConfigureTableView() protected méthode

protected ConfigureTableView ( ) : void
Résultat void

CreatSearchDelegate() protected méthode

protected CreatSearchDelegate ( ) : UISearchBarDelegate
Résultat UISearchBarDelegate

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

Deselected() public méthode

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

DialogViewController() public méthode

public DialogViewController ( IntPtr handle ) : CoreGraphics
handle System.IntPtr
Résultat CoreGraphics

DialogViewController() public méthode

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

DialogViewController() public méthode

Creates a new DialogViewController from a RootElement and sets the push status
public DialogViewController ( RootElement root, bool pushing ) : CoreGraphics
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 CoreGraphics

DialogViewController() public méthode

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

DialogViewController() public méthode

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

DidRotate() public méthode

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

FinishSearch() public méthode

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

ForceDirty() public méthode

public ForceDirty ( bool newDirty = true ) : void
newDirty bool
Résultat void

HeightForRow() protected méthode

protected HeightForRow ( UITableView containedTableView, NSIndexPath indexPath ) : nfloat
containedTableView UITableView
indexPath NSIndexPath
Résultat nfloat

LoadView() public méthode

public LoadView ( ) : void
Résultat void

MakeRefreshTableHeaderView() public méthode

public MakeRefreshTableHeaderView ( CGRect rect ) : RefreshTableHeaderView
rect CGRect
Résultat CrossUI.iOS.Dialog.Utilities.RefreshTableHeaderView

MakeTableView() public méthode

public MakeTableView ( CGRect bounds, UITableViewStyle style ) : UITableView
bounds CGRect
style UITableViewStyle
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

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

ReloadIfDirty() protected méthode

protected ReloadIfDirty ( ) : void
Résultat void

ReloadTableView() public méthode

public ReloadTableView ( ) : 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() protected méthode

protected 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

TriggerRefresh() 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 TriggerRefresh ( ) : void
Résultat void

TriggerRefresh() protected méthode

protected TriggerRefresh ( bool showStatus ) : void
showStatus bool
Résultat void

UpdateSource() protected méthode

protected 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