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

Implementation of IRegionNavigationContentLoader that relies on a IServiceLocator to create new views when necessary.
Наследование: IRegionNavigationContentLoader
Показать файл Открыть проект Примеры использования класса

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

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