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
Afficher le fichier Open project: xperiandri/PortablePrism Class Usage Examples

Méthodes publiques

Méthode Description
Attach ( ) : void

Attaches the behavior to the specified region

Detach ( ) : void

Detaches the behavior from the INotifyCollectionChanged.

Private Methods

Méthode 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 méthode

Attaches the behavior to the specified region
public Attach ( ) : void
Résultat void

Detach() public méthode

Detaches the behavior from the INotifyCollectionChanged.
public Detach ( ) : void
Résultat void