C# Class Microsoft.Practices.Prism.Regions.Region

Implementation of IRegion that allows multiple active views.
Inheritance: IRegion
显示文件 Open project: xperiandri/PortablePrism Class Usage Examples

Public Methods

Method Description
Activate ( object view ) : void

Marks the specified view as active.

Add ( object view ) : IRegionManager

Adds a new view to the region.

Add ( object view, string viewName ) : IRegionManager

Adds a new view to the region.

Add ( object view, string viewName, bool createRegionManagerScope ) : IRegionManager

Adds a new view to the region.

Deactivate ( object view ) : void

Marks the specified view as inactive.

GetView ( string viewName ) : object

Returns the view instance that was added to the region using a specific name.

Region ( ) : System

Initializes a new instance of Region.

Remove ( object view ) : void

Removes the specified view from the region.

RequestNavigate ( Uri target, Action navigationCallback ) : void

Initiates navigation to the specified target.

Private Methods

Method Description
DefaultSortComparison ( object x, object y ) : int
GetItemMetadataOrThrow ( object view ) : ItemMetadata
InnerAdd ( object view, string viewName, IRegionManager scopedRegionManager ) : void
OnPropertyChanged ( string propertyName ) : void
ViewSortHintAttributeComparison ( ViewSortHintAttribute x, ViewSortHintAttribute y ) : int

Method Details

Activate() public method

Marks the specified view as active.
public Activate ( object view ) : void
view object The view to activate.
return void

Add() public method

Adds a new view to the region.
public Add ( object view ) : IRegionManager
view object The view to add.
return IRegionManager

Add() public method

Adds a new view to the region.
public Add ( object view, string viewName ) : IRegionManager
view object The view to add.
viewName string The name of the view. This can be used to retrieve it later by calling .
return IRegionManager

Add() public method

Adds a new view to the region.
public Add ( object view, string viewName, bool createRegionManagerScope ) : IRegionManager
view object The view to add.
viewName string The name of the view. This can be used to retrieve it later by calling .
createRegionManagerScope bool When , the added view will receive a new instance of , otherwise it will use the current region manager for this region.
return IRegionManager

Deactivate() public method

Marks the specified view as inactive.
public Deactivate ( object view ) : void
view object The view to deactivate.
return void

GetView() public method

Returns the view instance that was added to the region using a specific name.
public GetView ( string viewName ) : object
viewName string The name used when adding the view to the region.
return object

Region() public method

Initializes a new instance of Region.
public Region ( ) : System
return System

Remove() public method

Removes the specified view from the region.
public Remove ( object view ) : void
view object The view to remove.
return void

RequestNavigate() public method

Initiates navigation to the specified target.
public RequestNavigate ( Uri target, Action navigationCallback ) : void
target System.Uri The target.
navigationCallback Action A callback to execute when the navigation request is completed.
return void