C# Класс Microsoft.Practices.Prism.Regions.Region

Implementation of IRegion that allows multiple active views.
Наследование: IRegion
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

Activate() публичный Метод

Marks the specified view as active.
public Activate ( object view ) : void
view object The view to activate.
Результат void

Add() публичный Метод

Adds a new view to the region.
public Add ( object view ) : IRegionManager
view object The view to add.
Результат IRegionManager

Add() публичный Метод

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 .
Результат IRegionManager

Add() публичный Метод

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.
Результат IRegionManager

Deactivate() публичный Метод

Marks the specified view as inactive.
public Deactivate ( object view ) : void
view object The view to deactivate.
Результат void

GetView() публичный Метод

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.
Результат object

Region() публичный Метод

Initializes a new instance of Region.
public Region ( ) : System
Результат System

Remove() публичный Метод

Removes the specified view from the region.
public Remove ( object view ) : void
view object The view to remove.
Результат void

RequestNavigate() публичный Метод

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.
Результат void