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

Inheritance: IRegionBehaviorFactory
显示文件 Open project: xperiandri/PortablePrism Class Usage Examples

Public Methods

Method 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

Method Description
ContainsKey ( string behaviorKey ) : bool
IEnumerable ( ) : IEnumerator

Returns an enumerator that iterates through a collection.

Method Details

AddIfMissing() public method

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.
return void

CreateFromKey() public method

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.
return IRegionBehavior

GetEnumerator() public method

Returns an enumerator that iterates through the collection.
public GetEnumerator ( ) : IEnumerator
return IEnumerator

RegionBehaviorFactory() public method

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 .
return Microsoft.Practices.Prism.Properties