Class ItemsControlRegionAdapter
Adapter that creates a new Sartorius.SAF.Presentation.Regions.AllActiveRegion and binds all the views to the adapted System.Windows.Controls.ItemsControl.
Inheritance
System.Object
    RegionAdapterBase<System.Windows.Controls.ItemsControl>
    ItemsControlRegionAdapter
      
  Implements
      System.Object.Equals(System.Object)
    
    
      System.Object.Equals(System.Object, System.Object)
    
    
      System.Object.GetHashCode()
    
    
      System.Object.GetType()
    
    
      System.Object.MemberwiseClone()
    
    
      System.Object.ReferenceEquals(System.Object, System.Object)
    
    
      System.Object.ToString()
    
    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 System.Windows.Controls.ItemsControl to an IRegion.
Declaration
protected override void Adapt(IRegion region, ItemsControl regionTarget)
  Parameters
| Type | Name | Description | 
|---|---|---|
| IRegion | region | The new region being used.  | 
      
| System.Windows.Controls.ItemsControl | regionTarget | The object to adapt.  | 
      
Overrides
Sartorius.SAF.Presentation.Regions.RegionAdapterBase<System.Windows.Controls.ItemsControl>.Adapt(Sartorius.SAF.Presentation.Regions.IRegion, System.Windows.Controls.ItemsControl)
  
  
    View Source
  
  
  CreateRegion()
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.  | 
      
Overrides
Sartorius.SAF.Presentation.Regions.RegionAdapterBase<System.Windows.Controls.ItemsControl>.CreateRegion()