Class ContentControlRegionAdapter
Adapter that creates a new Sartorius.SAF.Presentation.Regions.SingleActiveRegion and monitors its active view to set it on the adapted ContentControl.
Inheritance
ContentControlRegionAdapter
Implements
Namespace: Sartorius.SAF.Presentation.Regions
Assembly: Sartorius.SAF.Presentation.dll
Syntax
public class ContentControlRegionAdapter : RegionAdapterBase<ContentControl>, IRegionAdapter
Constructors
View SourceContentControlRegionAdapter(IRegionBehaviorFactory)
Initializes a new instance of ContentControlRegionAdapter.
Declaration
public ContentControlRegionAdapter(IRegionBehaviorFactory regionBehaviorFactory)
Parameters
| Type | Name | Description |
|---|---|---|
| IRegionBehaviorFactory | regionBehaviorFactory | The factory used to create the region behaviors to attach to the created regions. |
Methods
View SourceAdapt(IRegion, ContentControl)
Adapts a ContentControl to an IRegion.
Declaration
protected override void Adapt(IRegion region, ContentControl regionTarget)
Parameters
| Type | Name | Description |
|---|---|---|
| IRegion | region | The new region being used. |
| ContentControl | regionTarget | The object to adapt. |
Overrides
View SourceCreateRegion()
Creates a new instance of Sartorius.SAF.Presentation.Regions.SingleActiveRegion.
Declaration
protected override IRegion CreateRegion()
Returns
| Type | Description |
|---|---|
| IRegion | A new instance of Sartorius.SAF.Presentation.Regions.SingleActiveRegion. |