C# Class Microsoft.Practices.Prism.Regions.Behaviors.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 RegionManager.RegionManagerProperty property is not .
Inheritance: RegionBehavior, IHostAwareRegionBehavior
Mostra file Open project: xperiandri/PortablePrism

Public Properties

Property Type Description
BehaviorKey string

Public Methods

Method Description
RegionManagerRegistrationBehavior ( ) : System

Initializes a new instance of RegionManagerRegistrationBehavior.

Protected Methods

Method Description
OnAttach ( ) : void

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.

Private Methods

Method Description
FindRegionManager ( DependencyObject dependencyObject ) : IRegionManager
GetAttachedRegionManager ( ) : IRegionManager
OnUpdatingRegions ( object sender, EventArgs e ) : void
Region_PropertyChanged ( object sender, PropertyChangedEventArgs e ) : void
StartMonitoringRegionManager ( ) : void
TryRegisterRegion ( ) : void

Method Details

OnAttach() protected method

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.
protected OnAttach ( ) : void
return void

RegionManagerRegistrationBehavior() public method

Initializes a new instance of RegionManagerRegistrationBehavior.
public RegionManagerRegistrationBehavior ( ) : System
return System

Property Details

BehaviorKey public_oe static_oe property

The key of this behavior.
public static string BehaviorKey
return string