Skip to content

INavigationService.GoTo

Yngve Bakken Nilsen edited this page Jun 24, 2014 · 2 revisions

INavigationService.GoTo<T>()

Navigates to the page specified by T which is of type Page. A PageDescriptionAttribute is required on the Page in order for navigation to be possible.

Example:

Navigate to the url specified on the FrontPage Page object

Document.Navigation.GoTo<FrontPage>();

INavigationService.GoTo(Type t)

Navigates to the page specified by Type t which is of type Page. A PageDescriptionAttribute is required on the Page in order for navigation to be possible.

Example:

Navigate to the url specified on the FrontPage Page object

object frontPage = Document.Navigation.GoTo(typeof(FrontPage)) as FrontPage;

INavigationService.GoTo(Uri url)

Navigates to the specified URL