Windows.UI.Xaml.Controls.Frame.Navigate C# (CSharp) Method

Navigate() public method

public Navigate ( [ sourcePageType ) : bool
sourcePageType [
return bool
		public extern bool Navigate([In] TypeName sourcePageType);
	}

Same methods

Frame::Navigate ( [ sourcePageType, [ parameter ) : bool

Usage Example

        /// <summary>
        /// Setup the application and initialize the tests.
        /// </summary>
        /// <param name="args">
        /// Details about the launch request and process.
        /// </param>
        protected override void OnLaunched(LaunchActivatedEventArgs args)
        {
            // Do not repeat app initialization when already running, just
            // ensure that the window is active
            if (args.PreviousExecutionState == ApplicationExecutionState.Running)
            {
                Window.Current.Activate();
                return;
            }

            // Set the App Mode and configuration based on the arguments
            Harness.SetAutoConfig(args.Arguments);
            Frame rootFrame = new Frame();

            if (Harness.Settings.ManualMode)
            {
                rootFrame.Navigate(typeof(MainPage));
            }
            else
            {
                rootFrame.Navigate(typeof(TestPage));
            }

            Window.Current.Content = rootFrame;
            Window.Current.Activate();
        }
All Usage Examples Of Windows.UI.Xaml.Controls.Frame::Navigate