C# Класс CrossUI.iOS.Dialog.DialogViewController

The DialogViewController is the main entry point to use MonoTouch.Dialog, it provides a simplified API to the UITableViewController.
Наследование: UITableViewController
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
Style UITableViewStyle

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

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

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

Метод Описание
AdjustLayoutForViewWillAppear ( ) : void
ConfigureTableView ( ) : void
CreatSearchDelegate ( ) : UISearchBarDelegate
HeightForRow ( UITableView containedTableView, NSIndexPath indexPath ) : nfloat
ReloadIfDirty ( ) : void
SetupSearch ( ) : void
TriggerRefresh ( bool showStatus ) : void
UpdateSource ( ) : void

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

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

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

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

protected AdjustLayoutForViewWillAppear ( ) : void
Результат void

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

protected ConfigureTableView ( ) : void
Результат void

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

protected CreatSearchDelegate ( ) : UISearchBarDelegate
Результат UISearchBarDelegate

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

public CreateSizingSource ( bool unevenRows ) : Source
unevenRows bool
Результат Source

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

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

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

public Deselected ( NSIndexPath indexPath ) : void
indexPath NSIndexPath
Результат void

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

public DialogViewController ( IntPtr handle ) : CoreGraphics
handle System.IntPtr
Результат CoreGraphics

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

public DialogViewController ( RootElement root ) : CoreGraphics
root RootElement
Результат CoreGraphics

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

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

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

public DialogViewController ( UITableViewStyle style, RootElement root ) : CoreGraphics
style UITableViewStyle
root RootElement
Результат CoreGraphics

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

public DialogViewController ( UITableViewStyle style, RootElement root, bool pushing ) : CoreGraphics
style UITableViewStyle
root RootElement
pushing bool
Результат CoreGraphics

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

public DidRotate ( UIInterfaceOrientation fromInterfaceOrientation ) : void
fromInterfaceOrientation UIInterfaceOrientation
Результат void

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

Allows the caller to programatically stop searching.
public FinishSearch ( ) : void
Результат void

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

public ForceDirty ( bool newDirty = true ) : void
newDirty bool
Результат void

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

protected HeightForRow ( UITableView containedTableView, NSIndexPath indexPath ) : nfloat
containedTableView UITableView
indexPath NSIndexPath
Результат nfloat

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

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

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

public MakeRefreshTableHeaderView ( CGRect rect ) : RefreshTableHeaderView
rect CGRect
Результат CrossUI.iOS.Dialog.Utilities.RefreshTableHeaderView

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

public MakeTableView ( CGRect bounds, UITableViewStyle style ) : UITableView
bounds CGRect
style UITableViewStyle
Результат UITableView

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

public OnSearchTextChanged ( string text ) : void
text string
Результат void

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

public PerformFilter ( string text ) : void
text string
Результат void

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

Invoke this method to signal that a reload has completed, this will update the UI accordingly.
public ReloadComplete ( ) : void
Результат void

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

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

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

protected ReloadIfDirty ( ) : void
Результат void

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

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

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

public SearchButtonClicked ( string text ) : void
text string
Результат void

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

public Selected ( NSIndexPath indexPath ) : void
indexPath NSIndexPath
Результат void

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

protected SetupSearch ( ) : void
Результат void

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

public ShouldAutorotateToInterfaceOrientation ( UIInterfaceOrientation toInterfaceOrientation ) : bool
toInterfaceOrientation UIInterfaceOrientation
Результат bool

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

Allows caller to programatically activate the search bar and start the search process
public StartSearch ( ) : void
Результат void

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

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

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

protected TriggerRefresh ( bool showStatus ) : void
showStatus bool
Результат void

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

protected UpdateSource ( ) : void
Результат void

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

public ViewWillAppear ( bool animated ) : void
animated bool
Результат void

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

public ViewWillDisappear ( bool animated ) : void
animated bool
Результат void

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

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

public UITableViewStyle Style
Результат UITableViewStyle