C# 클래스 Microsoft.Practices.Prism.Regions.RegionViewRegistry

Defines a registry for the content of the regions used on View Discovery composition.
상속: IRegionViewRegistry
파일 보기 프로젝트 열기: xperiandri/PortablePrism 1 사용 예제들

공개 메소드들

메소드 설명
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