C# 클래스 Microsoft.Practices.Prism.Regions.Behaviors.ClearChildViewsRegionBehavior

Behavior that removes the RegionManager attached property of all the views in a region once the RegionManager property of a region becomes null. This is useful when removing views with nested regions, to ensure these nested regions get removed from the RegionManager as well. This behavior does not apply by default. In order to activate it, the ClearChildViews attached property must be set to True in the view containing the affected child regions.
상속: Microsoft.Practices.Prism.Regions.RegionBehavior
파일 보기 프로젝트 열기: xperiandri/PortablePrism 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
ClearChildViewsProperty DependencyProperty

공개 메소드들

메소드 설명
GetClearChildViews ( DependencyObject target ) : bool

Gets the ClearChildViews attached property from a DependencyObject.

SetClearChildViews ( DependencyObject target, bool value ) : void

Sets the ClearChildViews attached property in a DependencyObject.

보호된 메소드들

메소드 설명
OnAttach ( ) : void

Subscribes to the Region's PropertyChanged method to monitor its RegionManager property.

비공개 메소드들

메소드 설명
ClearChildViews ( IRegion region ) : void
Region_PropertyChanged ( object sender, System e ) : void

메소드 상세

GetClearChildViews() 공개 정적인 메소드

Gets the ClearChildViews attached property from a DependencyObject.
public static GetClearChildViews ( DependencyObject target ) : bool
target DependencyObject The object from which to get the value.
리턴 bool

OnAttach() 보호된 메소드

Subscribes to the Region's PropertyChanged method to monitor its RegionManager property.
protected OnAttach ( ) : void
리턴 void

SetClearChildViews() 공개 정적인 메소드

Sets the ClearChildViews attached property in a DependencyObject.
public static SetClearChildViews ( DependencyObject target, bool value ) : void
target DependencyObject The object in which to set the value.
value bool The value of to set in the target object's ClearChildViews attached property.
리턴 void

프로퍼티 상세

ClearChildViewsProperty 공개적으로 정적으로 프로퍼티

This attached property can be defined on a view to indicate that regions defined in it must be removed from the region manager when the parent view gets removed from a region.
public static DependencyProperty ClearChildViewsProperty
리턴 DependencyProperty