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

Implementation of IRegionNavigationContentLoader that relies on a IServiceLocator to create new views when necessary.
상속: IRegionNavigationContentLoader
파일 보기 프로젝트 열기: xperiandri/PortablePrism 1 사용 예제들

공개 메소드들

메소드 설명
LoadContent ( IRegion region, Microsoft.Practices.Prism.Regions.NavigationContext navigationContext ) : object

Gets the view to which the navigation request represented by navigationContext applies.

If none of the views in the region can be the target of the navigation request, a new view is created and added to the region.

RegionNavigationContentLoader ( IServiceLocator serviceLocator ) : System

Initializes a new instance of the RegionNavigationContentLoader class with a service locator.

보호된 메소드들

메소드 설명
CreateNewRegionItem ( string candidateTargetContract ) : object

Provides a new item for the region based on the supplied candidate target contract name.

GetCandidatesFromRegion ( IRegion region, string candidateNavigationContract ) : IEnumerable

Returns the set of candidates that may satisfiy this navigation request.

GetContractFromNavigationContext ( Microsoft.Practices.Prism.Regions.NavigationContext navigationContext ) : string

Returns the candidate TargetContract based on the NavigationContext.

메소드 상세

CreateNewRegionItem() 보호된 메소드

Provides a new item for the region based on the supplied candidate target contract name.
protected CreateNewRegionItem ( string candidateTargetContract ) : object
candidateTargetContract string The target contract to build.
리턴 object

GetCandidatesFromRegion() 보호된 메소드

Returns the set of candidates that may satisfiy this navigation request.
protected GetCandidatesFromRegion ( IRegion region, string candidateNavigationContract ) : IEnumerable
region IRegion The region containing items that may satisfy the navigation request.
candidateNavigationContract string The candidate navigation target as determined by
리턴 IEnumerable

GetContractFromNavigationContext() 보호된 메소드

Returns the candidate TargetContract based on the NavigationContext.
protected GetContractFromNavigationContext ( Microsoft.Practices.Prism.Regions.NavigationContext navigationContext ) : string
navigationContext Microsoft.Practices.Prism.Regions.NavigationContext The navigation contract.
리턴 string

LoadContent() 공개 메소드

Gets the view to which the navigation request represented by navigationContext applies.
If none of the views in the region can be the target of the navigation request, a new view is created and added to the region.
when a new view cannot be created for the navigation request.
public LoadContent ( IRegion region, Microsoft.Practices.Prism.Regions.NavigationContext navigationContext ) : object
region IRegion The region.
navigationContext Microsoft.Practices.Prism.Regions.NavigationContext The context representing the navigation request.
리턴 object

RegionNavigationContentLoader() 공개 메소드

Initializes a new instance of the RegionNavigationContentLoader class with a service locator.
public RegionNavigationContentLoader ( IServiceLocator serviceLocator ) : System
serviceLocator IServiceLocator The service locator.
리턴 System