C# Class Caliburn.Micro.ViewAware

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

Méthodes publiques

Свойство Type Description
CacheViewsByDefault bool

Protected Properties

Свойство Type Description
Views object>.Dictionary

Méthodes publiques

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

Méthodes protégées

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

Méthode Description
IViewAware ( object view, object context ) : void

Method Details

GetView() public méthode

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

OnViewAttached() protected méthode

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

OnViewLoaded() protected méthode

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

OnViewReady() protected méthode

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

ViewAware() public méthode

Creates an instance of ViewAware.
public ViewAware ( ) : System
Résultat System

ViewAware() public méthode

Creates an instance of ViewAware.
public ViewAware ( bool cacheViews ) : System
cacheViews bool Indicates whether or not this instance maintains a view cache.
Résultat 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
Résultat bool

Views protected_oe property

The view chache for this instance.
protected Dictionary Views
Résultat object>.Dictionary