C# Класс Geowigo.ViewModels.NavigationManager

A manager for handling page navigation in the app.
Показать файл Открыть проект Примеры использования класса

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

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

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

Метод Описание
GetPageScope ( Uri pageUri ) : PageScope
NavigateCore ( Uri source, bool cancelIfAlreadyActive = true, bool preferBackNav = false ) : void
NavigateToAppHomeCore ( ) : void

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

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

Determines if a page name corresponds to a view of the game.
public IsGameViewUri ( Uri pageUri ) : bool
pageUri System.Uri
Результат bool

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

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

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

Navigates the app to the main page of the app.
public NavigateToAppHome ( bool stopCurrentGame = false ) : void
stopCurrentGame bool
Результат void

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

Navigates the app to the info page of a cartridge.
public NavigateToCartridgeInfo ( CartridgeTag tag ) : void
tag Geowigo.Models.CartridgeTag
Результат void

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

Navigates the app to the page of compass calibration.
public NavigateToCompassCalibration ( ) : void
Результат void

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

Navigates the app to the game main page of a cartridge.
public NavigateToGameHome ( string filename ) : void
filename string
Результат void

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

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

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

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

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

Navigates the app to the map of the game zone.
public NavigateToGameMap ( ) : void
Результат void

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

Navigates the app to the help page.
public NavigateToHelp ( ) : void
Результат void

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

Navigates the app to the page about player and device info.
public NavigateToPlayerInfo ( ) : void
Результат void

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

Navigates the app to the wizard of linking a provider.
public NavigateToProviderLinkWizard ( Models provider ) : void
provider Models
Результат void

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

Navigates the app to the settings page.
public NavigateToSettings ( ) : void
Результат void

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

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

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

Navigates the app to the view that best fits a Task object.
public NavigateToView ( Task wherigoObj ) : void
wherigoObj Task
Результат void

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

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

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

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

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

public NavigationManager ( AppViewModel parent ) : System
parent AppViewModel
Результат System

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

Delays all navigation jobs until an external navigation occurs.
public PauseUntilNextNavigation ( ) : void
Результат void