Show / Hide Table of Contents

Class RegionManagerRegistrationBehavior

Subscribes to a static event from the RegionManager in order to register the target IRegion in a IRegionManager when one is available on the host control by walking up the tree and finding a control whose RegionManagerProperty property is not null.

Inheritance
object
RegionBehavior
RegionManagerRegistrationBehavior
MefRegionManagerRegistrationBehavior
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 RegionManagerRegistrationBehavior : RegionBehavior, IHostAwareRegionBehavior, IRegionBehavior

Constructors

View Source

RegionManagerRegistrationBehavior()

Initializes a new instance of RegionManagerRegistrationBehavior.

Declaration
public RegionManagerRegistrationBehavior()

Fields

View Source

BehaviorKey

The key of this behavior.

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.

Exceptions
Type Condition
InvalidOperationException

When this member is set after the Attach() method has being called.

View Source

RegionManagerAccessor

Provides an abstraction on top of the RegionManager static members.

Declaration
public IRegionManagerAccessor RegionManagerAccessor { get; set; }
Property Value
Type Description
IRegionManagerAccessor

Methods

View Source

OnAttach()

When the IRegion has a name assigned, the behavior will start monitoring the ancestor controls in the element tree to look for an IRegionManager where to register the region in.

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

OnUpdatingRegions(object, EventArgs)

This event handler gets called when a RegionManager is requering the instances of a region to be registered if they are not already. Although this is a public method to support Weak Delegates in Silverlight, it should not be called by the user.

Declaration
public void OnUpdatingRegions(object sender, EventArgs e)
Parameters
Type Name Description
object sender

The sender.

EventArgs e

The arguments.

Implements

IHostAwareRegionBehavior
IRegionBehavior

Extension Methods

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