C# Class Microsoft.Practices.Prism.Regions.Behaviors.RegionActiveAwareBehavior

Behavior that monitors a IRegion object and changes the value for the IActiveAware.IsActive property when an object that implements IActiveAware gets added or removed from the collection.
This class can also sync the active state for any scoped regions directly on the view based on the SyncActiveStateAttribute. If you use the Microsoft.Practices.Prism.Regions.Region.Add(object,string,bool) method with the createRegionManagerScope option, the scoped manager will be attached to the view.
Inheritance: IRegionBehavior
Exibir arquivo Open project: xperiandri/PortablePrism Class Usage Examples

Public Methods

Method Description
Attach ( ) : void

Attaches the behavior to the specified region

Detach ( ) : void

Detaches the behavior from the INotifyCollectionChanged.

Private Methods

Method Description
GetCollection ( ) : INotifyCollectionChanged
InvokeOnActiveAwareElement ( object item, Action invocation ) : void
InvokeOnSynchronizedActiveAwareChildren ( object item, Action invocation ) : void
OnCollectionChanged ( object sender, NotifyCollectionChangedEventArgs e ) : void
ShouldSyncActiveState ( object view ) : bool

Method Details

Attach() public method

Attaches the behavior to the specified region
public Attach ( ) : void
return void

Detach() public method

Detaches the behavior from the INotifyCollectionChanged.
public Detach ( ) : void
return void