C# Class Solocast.UWP.Infrastructure.Services.AppShellNavigationService

Inheritance: INavigationService
Afficher le fichier Open project: Solocast/solocast-clients Class Usage Examples

Méthodes publiques

Méthode Description
Configure ( string key, Type pageType ) : void

Adds a key/page pair to the navigation service.

GoBack ( ) : void

If possible, discards the current page and displays the previous page on the navigation stack.

NavigateTo ( string pageKey ) : void

Displays a new page corresponding to the given key. Make sure to call the Configure method first.

NavigateTo ( string pageKey, object parameter ) : void

Displays a new page corresponding to the given key, and passes a parameter to the new page. Make sure to call the Configure method first.

Method Details

Configure() public méthode

Adds a key/page pair to the navigation service.
public Configure ( string key, Type pageType ) : void
key string /// The key that will be used later /// in the or methods. ///
pageType System.Type The type of the page corresponding to the key.
Résultat void

GoBack() public méthode

If possible, discards the current page and displays the previous page on the navigation stack.
public GoBack ( ) : void
Résultat void

NavigateTo() public méthode

Displays a new page corresponding to the given key. Make sure to call the Configure method first.
/// When this method is called for /// a key that has not been configured earlier. ///
public NavigateTo ( string pageKey ) : void
pageKey string /// The key corresponding to the page /// that should be displayed. ///
Résultat void

NavigateTo() public méthode

Displays a new page corresponding to the given key, and passes a parameter to the new page. Make sure to call the Configure method first.
/// When this method is called for /// a key that has not been configured earlier. ///
public NavigateTo ( string pageKey, object parameter ) : void
pageKey string /// The key corresponding to the page /// that should be displayed. ///
parameter object /// The parameter that should be passed /// to the new page. ///
Résultat void