C# 클래스 Microsoft.Practices.Prism.Regions.RegionManager

This class is responsible for maintaining a collection of regions and attaching regions to controls.
This class supplies the attached properties that can be used for simple region creation from XAML.
상속: IRegionManager
파일 보기 프로젝트 열기: xperiandri/PortablePrism 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
RegionContextProperty DependencyProperty
RegionManagerProperty DependencyProperty
RegionNameProperty DependencyProperty

공개 메소드들

메소드 설명
CreateRegionManager ( ) : IRegionManager

Creates a new region manager.

GetObservableRegion ( DependencyObject view ) : ObservableObject

Returns an ObservableObject{T} wrapper that can hold an IRegion. Using this wrapper you can detect when an IRegion has been created by the RegionAdapterBase{T}. If the ObservableObject{T} wrapper does not yet exist, a new wrapper will be created. When the region gets created and assigned to the wrapper, you can use the ObservableObject{T}.PropertyChanged event to get notified of that change.

GetRegionContext ( DependencyObject target ) : object

Gets the value of the RegionContextProperty attached property.

GetRegionManager ( DependencyObject target ) : IRegionManager

Gets the value of the RegionNameProperty attached property.

GetRegionName ( DependencyObject regionTarget ) : string

Gets the value for the RegionNameProperty attached property.

RegionManager ( ) : System

Initializes a new instance of RegionManager.

SetRegionContext ( DependencyObject target, object value ) : void

Sets the RegionContextProperty attached property.

SetRegionManager ( DependencyObject target, IRegionManager value ) : void

Sets the RegionManagerProperty attached property.

SetRegionName ( DependencyObject regionTarget, string regionName ) : void

Sets the RegionNameProperty attached property.

UpdateRegions ( ) : void

Notifies attached behaviors to update the region managers appropriatelly if needed to.

This method is normally called internally, and there is usually no need to call this from user code.

비공개 메소드들

메소드 설명
CreateRegion ( DependencyObject element ) : void
IsInDesignMode ( DependencyObject element ) : bool
OnRegionContextChanged ( DependencyObject depObj, DependencyPropertyChangedEventArgs e ) : void
OnSetRegionNameCallback ( DependencyObject element, DependencyPropertyChangedEventArgs args ) : void

메소드 상세

CreateRegionManager() 공개 메소드

Creates a new region manager.
public CreateRegionManager ( ) : IRegionManager
리턴 IRegionManager

GetObservableRegion() 공개 정적인 메소드

Returns an ObservableObject{T} wrapper that can hold an IRegion. Using this wrapper you can detect when an IRegion has been created by the RegionAdapterBase{T}. If the ObservableObject{T} wrapper does not yet exist, a new wrapper will be created. When the region gets created and assigned to the wrapper, you can use the ObservableObject{T}.PropertyChanged event to get notified of that change.
public static GetObservableRegion ( DependencyObject view ) : ObservableObject
view DependencyObject The view that will host the region.
리턴 ObservableObject

GetRegionContext() 공개 정적인 메소드

Gets the value of the RegionContextProperty attached property.
public static GetRegionContext ( DependencyObject target ) : object
target DependencyObject The target element.
리턴 object

GetRegionManager() 공개 정적인 메소드

Gets the value of the RegionNameProperty attached property.
public static GetRegionManager ( DependencyObject target ) : IRegionManager
target DependencyObject The target element.
리턴 IRegionManager

GetRegionName() 공개 정적인 메소드

Gets the value for the RegionNameProperty attached property.
public static GetRegionName ( DependencyObject regionTarget ) : string
regionTarget DependencyObject The object to adapt. This is typically a container (i.e a control).
리턴 string

RegionManager() 공개 메소드

Initializes a new instance of RegionManager.
public RegionManager ( ) : System
리턴 System

SetRegionContext() 공개 정적인 메소드

Sets the RegionContextProperty attached property.
public static SetRegionContext ( DependencyObject target, object value ) : void
target DependencyObject The target element.
value object The value.
리턴 void

SetRegionManager() 공개 정적인 메소드

Sets the RegionManagerProperty attached property.
public static SetRegionManager ( DependencyObject target, IRegionManager value ) : void
target DependencyObject The target element.
value IRegionManager The value.
리턴 void

SetRegionName() 공개 정적인 메소드

Sets the RegionNameProperty attached property.
public static SetRegionName ( DependencyObject regionTarget, string regionName ) : void
regionTarget DependencyObject The object to adapt. This is typically a container (i.e a control).
regionName string The name of the region to register.
리턴 void

UpdateRegions() 공개 정적인 메소드

Notifies attached behaviors to update the region managers appropriatelly if needed to.
This method is normally called internally, and there is usually no need to call this from user code.
public static UpdateRegions ( ) : void
리턴 void

프로퍼티 상세

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

Identifies the RegionContext attached property.
public static DependencyProperty RegionContextProperty
리턴 DependencyProperty

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

Identifies the RegionManager attached property.
When a control has both the RegionNameProperty and RegionManagerProperty attached properties set to a value different than and there is a IRegionAdapter mapping registered for the control, it will create and adapt a new region for that control, and register it in the IRegionManager with the specified region name.
public static DependencyProperty RegionManagerProperty
리턴 DependencyProperty

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

Identifies the RegionName attached property.
When a control has both the RegionNameProperty and RegionManagerProperty attached properties set to a value different than and there is a IRegionAdapter mapping registered for the control, it will create and adapt a new region for that control, and register it in the IRegionManager with the specified region name.
public static DependencyProperty RegionNameProperty
리턴 DependencyProperty