C# Class Geowigo.ViewModels.NavigationManager

A manager for handling page navigation in the app.
Show file Open project: WFoundation/WF.Player.WinPhone Class Usage Examples

Public Methods

Method Description
IsGameViewUri ( Uri pageUri ) : bool

Determines if a page name corresponds to a view of the game.

NavigateBack ( ) : void

Navigates one step back in the game activity.

This method has no effect if the previous view in the stack is not a game view.

NavigateToAppHome ( bool stopCurrentGame = false ) : void

Navigates the app to the main page of the app.

NavigateToCartridgeInfo ( CartridgeTag tag ) : void

Navigates the app to the info page of a cartridge.

NavigateToCompassCalibration ( ) : void

Navigates the app to the page of compass calibration.

NavigateToGameHome ( string filename ) : void

Navigates the app to the game main page of a cartridge.

NavigateToGameHome ( string filename, CartridgeSavegame savegame ) : void

Navigates the app to the game main page of a cartridge and restores a savegame.

NavigateToGameHome ( string filename, string section ) : void

Navigates the app to the game main page of a cartridge at a specific section.

NavigateToGameMap ( ) : void

Navigates the app to the map of the game zone.

NavigateToHelp ( ) : void

Navigates the app to the help page.

NavigateToPlayerInfo ( ) : void

Navigates the app to the page about player and device info.

NavigateToProviderLinkWizard ( Models provider ) : void

Navigates the app to the wizard of linking a provider.

NavigateToSettings ( ) : void

Navigates the app to the settings page.

NavigateToView ( WF.Player.Core.Input wherigoObj ) : void

Navigates the app to the view that best fits an Input object.

NavigateToView ( Task wherigoObj ) : void

Navigates the app to the view that best fits a Task object.

NavigateToView ( WF.Player.Core.Thing wherigoObj ) : void

Navigates the app to the view that best fits a Thing object.

NavigateToView ( WF.Player.Core.UIObject wherigoObj ) : void

Navigates the app to the view that best fits a UIObject object.

NavigationManager ( AppViewModel parent ) : System
PauseUntilNextNavigation ( ) : void

Delays all navigation jobs until an external navigation occurs.

Private Methods

Method Description
GetPageScope ( Uri pageUri ) : PageScope
NavigateCore ( Uri source, bool cancelIfAlreadyActive = true, bool preferBackNav = false ) : void
NavigateToAppHomeCore ( ) : void

Method Details

IsGameViewUri() public method

Determines if a page name corresponds to a view of the game.
public IsGameViewUri ( Uri pageUri ) : bool
pageUri System.Uri
return bool

NavigateBack() public method

Navigates one step back in the game activity.
This method has no effect if the previous view in the stack is not a game view.
public NavigateBack ( ) : void
return void

NavigateToAppHome() public method

Navigates the app to the main page of the app.
public NavigateToAppHome ( bool stopCurrentGame = false ) : void
stopCurrentGame bool
return void

NavigateToCartridgeInfo() public method

Navigates the app to the info page of a cartridge.
public NavigateToCartridgeInfo ( CartridgeTag tag ) : void
tag Geowigo.Models.CartridgeTag
return void

NavigateToCompassCalibration() public method

Navigates the app to the page of compass calibration.
public NavigateToCompassCalibration ( ) : void
return void

NavigateToGameHome() public method

Navigates the app to the game main page of a cartridge.
public NavigateToGameHome ( string filename ) : void
filename string
return void

NavigateToGameHome() public method

Navigates the app to the game main page of a cartridge and restores a savegame.
public NavigateToGameHome ( string filename, CartridgeSavegame savegame ) : void
filename string
savegame Geowigo.Models.CartridgeSavegame
return void

NavigateToGameHome() public method

Navigates the app to the game main page of a cartridge at a specific section.
public NavigateToGameHome ( string filename, string section ) : void
filename string
section string
return void

NavigateToGameMap() public method

Navigates the app to the map of the game zone.
public NavigateToGameMap ( ) : void
return void

NavigateToHelp() public method

Navigates the app to the help page.
public NavigateToHelp ( ) : void
return void

NavigateToPlayerInfo() public method

Navigates the app to the page about player and device info.
public NavigateToPlayerInfo ( ) : void
return void

NavigateToProviderLinkWizard() public method

Navigates the app to the wizard of linking a provider.
public NavigateToProviderLinkWizard ( Models provider ) : void
provider Models
return void

NavigateToSettings() public method

Navigates the app to the settings page.
public NavigateToSettings ( ) : void
return void

NavigateToView() public method

Navigates the app to the view that best fits an Input object.
public NavigateToView ( WF.Player.Core.Input wherigoObj ) : void
wherigoObj WF.Player.Core.Input
return void

NavigateToView() public method

Navigates the app to the view that best fits a Task object.
public NavigateToView ( Task wherigoObj ) : void
wherigoObj Task
return void

NavigateToView() public method

Navigates the app to the view that best fits a Thing object.
public NavigateToView ( WF.Player.Core.Thing wherigoObj ) : void
wherigoObj WF.Player.Core.Thing
return void

NavigateToView() public method

Navigates the app to the view that best fits a UIObject object.
public NavigateToView ( WF.Player.Core.UIObject wherigoObj ) : void
wherigoObj WF.Player.Core.UIObject
return void

NavigationManager() public method

public NavigationManager ( AppViewModel parent ) : System
parent AppViewModel
return System

PauseUntilNextNavigation() public method

Delays all navigation jobs until an external navigation occurs.
public PauseUntilNextNavigation ( ) : void
return void