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

Inheritance: INavigationService
ファイルを表示 Open project: Solocast/solocast-clients Class Usage Examples

Public Methods

Method 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 method

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.
return void

GoBack() public method

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

NavigateTo() public method

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. ///
return void

NavigateTo() public method

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. ///
return void