Class ItemsControlRegionAdapter
Adapter that creates a new Sartorius.SAF.Presentation.Regions.AllActiveRegion and binds all the views to the adapted ItemsControl.
Inheritance
ItemsControlRegionAdapter
Implements
Namespace: Sartorius.SAF.Presentation.Regions
Assembly: Sartorius.SAF.Presentation.dll
Syntax
public class ItemsControlRegionAdapter : RegionAdapterBase<ItemsControl>, IRegionAdapter
Constructors
View SourceItemsControlRegionAdapter(IRegionBehaviorFactory)
Initializes a new instance of ItemsControlRegionAdapter.
Declaration
public ItemsControlRegionAdapter(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, ItemsControl)
Adapts an ItemsControl to an IRegion.
Declaration
protected override void Adapt(IRegion region, ItemsControl regionTarget)
Parameters
| Type | Name | Description |
|---|---|---|
| IRegion | region | The new region being used. |
| ItemsControl | regionTarget | The object to adapt. |
Overrides
View SourceCreateRegion()
Creates a new instance of Sartorius.SAF.Presentation.Regions.AllActiveRegion.
Declaration
protected override IRegion CreateRegion()
Returns
| Type | Description |
|---|---|
| IRegion | A new instance of Sartorius.SAF.Presentation.Regions.AllActiveRegion. |