Jaa


Frame.NavigateToType(TypeName, Object, FrameNavigationOptions) Method

Definition

Causes the Frame to load content represented by the specified Page, also passing a parameter to be interpreted by the target of the navigation.

bool NavigateToType(TypeName const& sourcePageType, IInspectable const& parameter, FrameNavigationOptions const& navigationOptions);
public bool NavigateToType(System.Type sourcePageType, object parameter, FrameNavigationOptions navigationOptions);
function navigateToType(sourcePageType, parameter, navigationOptions)
Public Function NavigateToType (sourcePageType As Type, parameter As Object, navigationOptions As FrameNavigationOptions) As Boolean

Parameters

sourcePageType
TypeName Type

The page to navigate to, specified as a type reference to its partial class type. (A type reference is given as System.Type for Microsoft .NET, or a TypeName helper struct for Visual C++ component extensions (C++/CX)).

parameter
Object

IInspectable

The navigation parameter to pass to the target page; must have a basic type (string, char, numeric, or GUID) to support parameter serialization using GetNavigationState.

navigationOptions
FrameNavigationOptions

Options for the navigation, including whether it is recorded in the navigation stack and what transition animation is used.

Returns

Boolean

bool

false if a NavigationFailed event handler has set Handled to true; otherwise, true.

Windows requirements

Device family
Windows 10, version 1809 (introduced in 10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v7.0)

Applies to