INavigate.Navigate(TypeName) Method

Definition

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

sourcePageType
TypeName Type

A type reference for the content to load.

Returns

Boolean

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.

Applies to

See also