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
파일 보기 프로젝트 열기: xperiandri/PortablePrism 1 사용 예제들

공개 메소드들

메소드 설명
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