Class SyncRegionContextWithHostBehavior
Behavior that synchronizes the Context property of a IRegion with the control that hosts the Region. It does this by setting the RegionContextProperty Dependency Property on the host control. This behavior allows the usage of two way databinding of the RegionContext from XAML.
Inheritance
SyncRegionContextWithHostBehavior
Namespace: Sartorius.SAF.Presentation.Regions.Behaviors
Assembly: Sartorius.SAF.Presentation.dll
Syntax
public class SyncRegionContextWithHostBehavior : RegionBehavior, IHostAwareRegionBehavior, IRegionBehavior
Fields
View SourceBehaviorKey
Name that identifies the SyncRegionContextWithHostBehavior behavior in a collection of RegionsBehaviors.
Declaration
public static string BehaviorKey
Field Value
| Type | Description |
|---|---|
| string |
Properties
View SourceHostControl
Gets or sets the DependencyObject that the IRegion is attached to.
Declaration
public DependencyObject HostControl { get; set; }
Property Value
| Type | Description |
|---|---|
| DependencyObject | A DependencyObject that the IRegion is attached to. This is usually a FrameworkElement that is part of the tree. |
Methods
View SourceOnAttach()
Override this method to perform the logic after the behavior has been attached.
Declaration
protected override void OnAttach()