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

Implementation of IRegion that allows multiple active views.
Inheritance: IRegion
Afficher le fichier Open project: xperiandri/PortablePrism Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

Add() public méthode

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

Add() public méthode

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 .
Résultat IRegionManager

Add() public méthode

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.
Résultat IRegionManager

Deactivate() public méthode

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

GetView() public méthode

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.
Résultat object

Region() public méthode

Initializes a new instance of Region.
public Region ( ) : System
Résultat System

Remove() public méthode

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

RequestNavigate() public méthode

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.
Résultat void