C# Класс Caliburn.Micro.ViewAware

A base implementation of IViewAware which is capable of caching views by context.
Наследование: PropertyChangedBase, IViewAware
Показать файл Открыть проект

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

Свойство Тип Описание
CacheViewsByDefault bool

Защищенные свойства (Protected)

Свойство Тип Описание
Views object>.Dictionary

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

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

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

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

Приватные методы

Метод Описание
IViewAware ( object view, object context ) : void

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

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

Gets a view previously attached to this instance.
public GetView ( object context = null ) : object
context object The context denoting which view to retrieve.
Результат object

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

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

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

Called when an attached view's Loaded event fires.
protected OnViewLoaded ( object view ) : void
view object
Результат void

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

Called the first time the attached view's LayoutUpdated event fires after its Loaded event fires.
protected OnViewReady ( object view ) : void
view object
Результат void

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

Creates an instance of ViewAware.
public ViewAware ( ) : System
Результат System

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

Creates an instance of ViewAware.
public ViewAware ( bool cacheViews ) : System
cacheViews bool Indicates whether or not this instance maintains a view cache.
Результат System

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

CacheViewsByDefault публичное статическое свойство

Indicates whether or not implementors of IViewAware should cache their views by default.
public static bool CacheViewsByDefault
Результат bool

Views защищенное свойство

The view chache for this instance.
protected Dictionary Views
Результат object>.Dictionary