Show / Hide Table of Contents

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.

System.Collections.Generic.IEnumerable<System.String>.GetEnumerator()
Namespace: Sartorius.SAF.Presentation.Regions
Assembly: Sartorius.SAF.Presentation.dll
Syntax
public interface IRegionBehaviorFactory : IEnumerable<string>, IEnumerable

Methods

View Source

AddIfMissing(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. .

View Source

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.

View Source

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.

Extension Methods

CollectionExtensions.AddRange<T, TCollection>(TCollection, IEnumerable<T>)
SerializableObjectCloneExtension.Clone<T>(T)
  • View Source
Back to top Generated by DocFX