Show / Hide Table of Contents

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
object
RegionBehavior
SyncRegionContextWithHostBehavior
MefSyncRegionContextWithHostBehavior
Implements
IHostAwareRegionBehavior
IRegionBehavior
RegionBehavior.IsAttached
RegionBehavior.Region
RegionBehavior.Attach()
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Sartorius.SAF.Presentation.Regions.Behaviors
Assembly: Sartorius.SAF.Presentation.dll
Syntax
public class SyncRegionContextWithHostBehavior : RegionBehavior, IHostAwareRegionBehavior, IRegionBehavior

Fields

View Source

BehaviorKey

Name that identifies the SyncRegionContextWithHostBehavior behavior in a collection of RegionsBehaviors.

Declaration
public static string BehaviorKey
Field Value
Type Description
string

Properties

View Source

HostControl

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 Source

OnAttach()

Override this method to perform the logic after the behavior has been attached.

Declaration
protected override void OnAttach()
Overrides
RegionBehavior.OnAttach()

Implements

IHostAwareRegionBehavior
IRegionBehavior

Extension Methods

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