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

Наследование: IRegionBehaviorFactory
Показать файл Открыть проект Примеры использования класса

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

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

Приватные методы

Метод Описание
ContainsKey ( string behaviorKey ) : bool
IEnumerable ( ) : IEnumerator

Returns an enumerator that iterates through a collection.

Описание методов

AddIfMissing() публичный Метод

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.
Результат void

CreateFromKey() публичный Метод

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.
Результат IRegionBehavior

GetEnumerator() публичный Метод

Returns an enumerator that iterates through the collection.
public GetEnumerator ( ) : IEnumerator
Результат IEnumerator

RegionBehaviorFactory() публичный Метод

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 .
Результат Microsoft.Practices.Prism.Properties