Interface IRegionBehaviorFactory
Interface for RegionBehaviorFactories. This factory allows the registration of the default set of RegionBehaviors, that will be added to the IRegionBehaviorCollections of all IRegions, unless overridden on a 'per-region' basis.
Namespace: Sartorius.SAF.Presentation.Regions
Assembly: Sartorius.SAF.Presentation.dll
Syntax
public interface IRegionBehaviorFactory : IEnumerable<string>, IEnumerable
Methods
View SourceAddIfMissing(String, Type)
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
Declaration
void AddIfMissing(string behaviorKey, Type behaviorType)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | behaviorKey | The behavior key that's used to find if a certain behavior is already added. |
| System.Type | behaviorType | Type of the behavior to add. . |
ContainsKey(String)
Determines whether a behavior with the specified key already exists
Declaration
bool ContainsKey(string behaviorKey)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | behaviorKey | The behavior key. |
Returns
| Type | Description |
|---|---|
| System.Boolean | true if a behavior with the specified key is present; otherwise, false. |
CreateFromKey(String)
Creates an instance of the Behaviortype that's registered using the specified key.
Declaration
IRegionBehavior CreateFromKey(string key)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | key | The key that's used to register a behavior type. |
Returns
| Type | Description |
|---|---|
| IRegionBehavior | The created behavior. |