C# Class Caliburn.Micro.ViewAware

A base implementation of IViewAware which is capable of caching views by context.
Inheritance: PropertyChangedBase, IViewAware
Mostrar archivo Open project: bryanhunter/CaliburnMicroTalk

Public Properties

Property Type Description
CacheViewsByDefault bool

Protected Properties

Property Type Description
Views object>.Dictionary

Public Methods

Method Description
GetView ( object context = null ) : object

Gets a view previously attached to this instance.

ViewAware ( ) : System

Creates an instance of ViewAware.

ViewAware ( bool cacheViews ) : System

Creates an instance of ViewAware.

Protected Methods

Method Description
OnViewAttached ( object view, object context ) : void

Called when a view is attached.

OnViewLoaded ( object view ) : void

Called when an attached view's Loaded event fires.

OnViewReady ( object view ) : void

Called the first time the attached view's LayoutUpdated event fires after its Loaded event fires.

Private Methods

Method Description
IViewAware ( object view, object context ) : void

Method Details

GetView() public method

Gets a view previously attached to this instance.
public GetView ( object context = null ) : object
context object The context denoting which view to retrieve.
return object

OnViewAttached() protected method

Called when a view is attached.
protected OnViewAttached ( object view, object context ) : void
view object The view.
context object The context in which the view appears.
return void

OnViewLoaded() protected method

Called when an attached view's Loaded event fires.
protected OnViewLoaded ( object view ) : void
view object
return void

OnViewReady() protected method

Called the first time the attached view's LayoutUpdated event fires after its Loaded event fires.
protected OnViewReady ( object view ) : void
view object
return void

ViewAware() public method

Creates an instance of ViewAware.
public ViewAware ( ) : System
return System

ViewAware() public method

Creates an instance of ViewAware.
public ViewAware ( bool cacheViews ) : System
cacheViews bool Indicates whether or not this instance maintains a view cache.
return System

Property Details

CacheViewsByDefault public_oe static_oe property

Indicates whether or not implementors of IViewAware should cache their views by default.
public static bool CacheViewsByDefault
return bool

Views protected_oe property

The view chache for this instance.
protected Dictionary Views
return object>.Dictionary