C# Class Microsoft.Practices.Prism.Regions.RegionNavigationContentLoader

Implementation of IRegionNavigationContentLoader that relies on a IServiceLocator to create new views when necessary.
Inheritance: IRegionNavigationContentLoader
Afficher le fichier Open project: xperiandri/PortablePrism Class Usage Examples

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
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.

Method Details

CreateNewRegionItem() protected méthode

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.
Résultat object

GetCandidatesFromRegion() protected méthode

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
Résultat IEnumerable

GetContractFromNavigationContext() protected méthode

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.
Résultat string

LoadContent() public méthode

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.
Résultat object

RegionNavigationContentLoader() public méthode

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