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.
Datei anzeigen Open project: ibgib/LearnLanguages

Private Properties

Property Type Description
GetShellViewModel IShellViewModel
GetSortedNavigationSets IList

Public Methods

Method 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

Method Description
GetShellViewModel ( ) : IShellViewModel
GetSortedNavigationSets ( ) : IList

Method Details

GetCurrentPage() public method

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
return IPage

GetNavigationPage() public method

public GetNavigationPage ( string pageIdString ) : IPage
pageIdString string
return IPage

GetPreviousPage() public method

public GetPreviousPage ( ) : IPage
return IPage

GetUniqueIdText() public method

public GetUniqueIdText ( IPage page ) : string
page IPage
return string

NavigateTo() public method

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

NavigateTo() public method

public NavigateTo ( string targetPageUniqueIdText ) : bool
targetPageUniqueIdText string
return bool

Navigator() public method

public Navigator ( ) : Caliburn.Micro
return Caliburn.Micro

RefreshNavigationPanel() public method

public RefreshNavigationPanel ( ) : void
return void

RegisterPage() public method

public RegisterPage ( IPage page ) : void
page IPage
return void

UnregisterPage() public method

public UnregisterPage ( IPage page ) : void
page IPage
return void