C# Class Caliburn.Micro.ReactiveUI.ReactiveViewAware

A base implementation of IViewAware which is capable of caching views by context.
Inheritance: Caliburn.Micro.ReactiveUI.ReactivePropertyChangedBase, IViewAware
Show file Open project: dchaib/Caliburn.Micro.ReactiveUI

Public Properties

Property Type Description
DefaultContext object

Protected Properties

Property Type Description
Views object>.IDictionary

Public Methods

Method Description
GetView ( object context = null ) : object

Gets a view previously attached to this instance.

ReactiveViewAware ( ) : System

Creates an instance of ReactiveViewAware.

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 page's LayoutUpdated event fires after it is navigated to.

Private Methods

Method Description
AttachViewReadyOnActivated ( IActivate activatable, object nonGeneratedView ) : void
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 page's LayoutUpdated event fires after it is navigated to.
protected OnViewReady ( object view ) : void
view object
return void

ReactiveViewAware() public method

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

Property Details

DefaultContext public static property

The default view context.
public static object DefaultContext
return object

Views protected property

The view cache for this instance.
protected IDictionary Views
return object>.IDictionary