C# Class Caliburn.Micro.Screen

A base implementation of IScreen.
Inheritance: ViewAware, IScreen, IChild
ファイルを表示 Open project: bryanhunter/CaliburnMicroTalk Class Usage Examples

Public Methods

Method Description
CanClose ( Action callback ) : void

Called to check whether or not this instance can close.

Screen ( ) : System

Creates an instance of the screen.

TryClose ( ) : void

Tries to close this instance by asking its Parent to initiate shutdown or by asking its corresponding view to close.

TryClose ( bool dialogResult ) : void

Closes this instance by asking its Parent to initiate shutdown or by asking it's corresponding view to close. This overload also provides an opportunity to pass a dialog result to it's corresponding view.

Protected Methods

Method Description
OnActivate ( ) : void

Called when activating.

OnDeactivate ( bool close ) : void

Called when deactivating.

OnInitialize ( ) : void

Called when initializing.

Private Methods

Method Description
GetViewCloseAction ( bool dialogResult ) : System.Action
IActivate ( ) : void
IDeactivate ( bool close ) : void

Method Details

CanClose() public method

Called to check whether or not this instance can close.
public CanClose ( Action callback ) : void
callback Action The implementor calls this action with the result of the close check.
return void

OnActivate() protected method

Called when activating.
protected OnActivate ( ) : void
return void

OnDeactivate() protected method

Called when deactivating.
protected OnDeactivate ( bool close ) : void
close bool Inidicates whether this instance will be closed.
return void

OnInitialize() protected method

Called when initializing.
protected OnInitialize ( ) : void
return void

Screen() public method

Creates an instance of the screen.
public Screen ( ) : System
return System

TryClose() public method

Tries to close this instance by asking its Parent to initiate shutdown or by asking its corresponding view to close.
public TryClose ( ) : void
return void

TryClose() public method

Closes this instance by asking its Parent to initiate shutdown or by asking it's corresponding view to close. This overload also provides an opportunity to pass a dialog result to it's corresponding view.
public TryClose ( bool dialogResult ) : void
dialogResult bool The dialog result.
return void