Frame.NavigateToType(TypeName, Object, FrameNavigationOptions) Frame.NavigateToType(TypeName, Object, FrameNavigationOptions) Frame.NavigateToType(TypeName, Object, FrameNavigationOptions) 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.

public : Platform::Boolean NavigateToType(TypeName sourcePageType, Platform::Object parameter, FrameNavigationOptions navigationOptions)
bool NavigateToType(TypeName sourcePageType, winrt::Windows::Foundation::IInspectable parameter, FrameNavigationOptions navigationOptions) const;
public bool NavigateToType(Type sourcePageType, Object parameter, FrameNavigationOptions navigationOptions)
Public Function NavigateToType(sourcePageType As Type, parameter As Object, navigationOptions As FrameNavigationOptions) As bool

Parameters

sourcePageType
Type 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 Object

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 FrameNavigationOptions

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

Returns

bool bool

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

Additional features and requirements

Device family
Windows 10, version 1809 (introduced v10.0.17763.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v7)