INavigate.Navigate(TypeName) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Causes the navigation host to load content that is specified by a type reference.
public:
bool Navigate(TypeName sourcePageType);
bool Navigate(TypeName const& sourcePageType);
public bool Navigate(System.Type sourcePageType);
function navigate(sourcePageType)
Public Function Navigate (sourcePageType As Type) As Boolean
Parameters
Returns
bool
true if the navigation host can navigate according to its settings; otherwise, false.
Remarks
The INavigate interface is mainly infrastructure. It's not expected that typical UWP app will implement this interface.
Important
If you are programming using a Microsoft .NET language (C#), the TypeName type projects as System.Type. When programming using C#, it is common to use the typeof
operator to get references to the System.Type of a type.
If you're using C++/WinRT you can use the winrt::xaml_typename<T>()
helper function to create a TypeName
object. See winrt::xaml_typename function template for more details, and a code example.