C# Класс 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.
Наследование: IRegionBehavior
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Attach ( ) : void

Attaches the behavior to the specified region

Detach ( ) : void

Detaches the behavior from the INotifyCollectionChanged.

Приватные методы

Метод Описание
GetCollection ( ) : INotifyCollectionChanged
InvokeOnActiveAwareElement ( object item, Action invocation ) : void
InvokeOnSynchronizedActiveAwareChildren ( object item, Action invocation ) : void
OnCollectionChanged ( object sender, NotifyCollectionChangedEventArgs e ) : void
ShouldSyncActiveState ( object view ) : bool

Описание методов

Attach() публичный Метод

Attaches the behavior to the specified region
public Attach ( ) : void
Результат void

Detach() публичный Метод

Detaches the behavior from the INotifyCollectionChanged.
public Detach ( ) : void
Результат void