C# Class LearnLanguages.Navigation.Navigator

To use this, just call RegisterPage. This automatically does the following: 1) Associates the page to the proper NavigationSet. If this does not exist, it first creates the NavigationSet. 2) Associates the NavigationPanel to the ShellViewModel. 3) Populates the NavigationPanel with the proper ViewModels. 4) Handles NavigationRequestedEventMessages by injecting the proper page's viewmodel into the shellviewmodel.
Afficher le fichier Open project: ibgib/LearnLanguages

Private Properties

Свойство Type Description
GetShellViewModel IShellViewModel
GetSortedNavigationSets IList

Méthodes publiques

Méthode Description
GetCurrentPage ( ) : IPage

Returns the current page. Can return null if the current page has been freed or if there is no current page (though this would be odd, if not an exception).

GetNavigationPage ( string pageIdString ) : IPage
GetPreviousPage ( ) : IPage
GetUniqueIdText ( IPage page ) : string
NavigateTo ( IPage targetPage ) : bool

Injects the page.ContentViewModel into the ShellViewModel, publishing event messages along the way.

NavigateTo ( string targetPageUniqueIdText ) : bool
Navigator ( ) : Caliburn.Micro
RefreshNavigationPanel ( ) : void
RegisterPage ( IPage page ) : void
UnregisterPage ( IPage page ) : void

Private Methods

Méthode Description
GetShellViewModel ( ) : IShellViewModel
GetSortedNavigationSets ( ) : IList

Method Details

GetCurrentPage() public méthode

Returns the current page. Can return null if the current page has been freed or if there is no current page (though this would be odd, if not an exception).
public GetCurrentPage ( ) : IPage
Résultat IPage

GetNavigationPage() public méthode

public GetNavigationPage ( string pageIdString ) : IPage
pageIdString string
Résultat IPage

GetPreviousPage() public méthode

public GetPreviousPage ( ) : IPage
Résultat IPage

GetUniqueIdText() public méthode

public GetUniqueIdText ( IPage page ) : string
page IPage
Résultat string

NavigateTo() public méthode

Injects the page.ContentViewModel into the ShellViewModel, publishing event messages along the way.
public NavigateTo ( IPage targetPage ) : bool
targetPage IPage
Résultat bool

NavigateTo() public méthode

public NavigateTo ( string targetPageUniqueIdText ) : bool
targetPageUniqueIdText string
Résultat bool

Navigator() public méthode

public Navigator ( ) : Caliburn.Micro
Résultat Caliburn.Micro

RefreshNavigationPanel() public méthode

public RefreshNavigationPanel ( ) : void
Résultat void

RegisterPage() public méthode

public RegisterPage ( IPage page ) : void
page IPage
Résultat void

UnregisterPage() public méthode

public UnregisterPage ( IPage page ) : void
page IPage
Résultat void