C# Класс Microsoft.Practices.Prism.Regions.RegionViewRegistry

Defines a registry for the content of the regions used on View Discovery composition.
Наследование: IRegionViewRegistry
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
GetContents ( string regionName ) : IEnumerable

Returns the contents registered for a region.

RegionViewRegistry ( IServiceLocator locator ) : System

Creates a new instance of the RegionViewRegistry class.

RegisterViewWithRegion ( string regionName, Func getContentDelegate ) : void

Registers a delegate that can be used to retrieve the content associated with a region name.

RegisterViewWithRegion ( string regionName, Type viewType ) : void

Registers a content type with a region name.

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

Метод Описание
CreateInstance ( Type type ) : object

Creates an instance of a registered view Type.

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

Метод Описание
OnContentRegistered ( Microsoft.Practices.Prism.Regions.ViewRegisteredEventArgs e ) : void

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

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

Creates an instance of a registered view Type.
protected CreateInstance ( Type type ) : object
type System.Type Type of the registered view.
Результат object

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

Returns the contents registered for a region.
public GetContents ( string regionName ) : IEnumerable
regionName string Name of the region which content is being requested.
Результат IEnumerable

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

Creates a new instance of the RegionViewRegistry class.
public RegionViewRegistry ( IServiceLocator locator ) : System
locator IServiceLocator used to create the instance of the views from its .
Результат System

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

Registers a delegate that can be used to retrieve the content associated with a region name.
public RegisterViewWithRegion ( string regionName, Func getContentDelegate ) : void
regionName string Region name to which the will be registered.
getContentDelegate Func Delegate used to retrieve the content associated with the .
Результат void

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

Registers a content type with a region name.
public RegisterViewWithRegion ( string regionName, Type viewType ) : void
regionName string Region name to which the will be registered.
viewType System.Type Content type to be registered for the .
Результат void