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

Inheritance: IRegionBehaviorFactory
Afficher le fichier Open project: xperiandri/PortablePrism Class Usage Examples

Méthodes publiques

Méthode Description
AddIfMissing ( string behaviorKey, Type behaviorType ) : void

Adds a particular type of RegionBehavior if it was not already registered. The behaviorKey string is used to check if the behavior is already present

CreateFromKey ( string key ) : IRegionBehavior

Creates an instance of the behavior Type that is registered using the specified key.

GetEnumerator ( ) : IEnumerator

Returns an enumerator that iterates through the collection.

RegionBehaviorFactory ( IServiceLocator serviceLocator ) : Microsoft.Practices.Prism.Properties

Initializes a new instance of RegionBehaviorFactory.

Private Methods

Méthode Description
ContainsKey ( string behaviorKey ) : bool
IEnumerable ( ) : IEnumerator

Returns an enumerator that iterates through a collection.

Method Details

AddIfMissing() public méthode

Adds a particular type of RegionBehavior if it was not already registered. The behaviorKey string is used to check if the behavior is already present
public AddIfMissing ( string behaviorKey, Type behaviorType ) : void
behaviorKey string The behavior key that's used to find if a certain behavior is already added.
behaviorType System.Type Type of the behavior to add.
Résultat void

CreateFromKey() public méthode

Creates an instance of the behavior Type that is registered using the specified key.
public CreateFromKey ( string key ) : IRegionBehavior
key string The key that is used to register a behavior type.
Résultat IRegionBehavior

GetEnumerator() public méthode

Returns an enumerator that iterates through the collection.
public GetEnumerator ( ) : IEnumerator
Résultat IEnumerator

RegionBehaviorFactory() public méthode

Initializes a new instance of RegionBehaviorFactory.
public RegionBehaviorFactory ( IServiceLocator serviceLocator ) : Microsoft.Practices.Prism.Properties
serviceLocator IServiceLocator used to create the instance of the behavior from its .
Résultat Microsoft.Practices.Prism.Properties