robot.sl/App.xaml.cs
/// <summary>
/// Invoked when the application is launched normally by the end user.  Other entry points
/// will be used such as when the application is launched to open a specific file.
/// </summary>
/// <param name="e">Details about the launch request and process.</param>
Invoked when the application is launched normally by the end user.  Other entry points
will be used such as when the application is launched to open a specific file.
Invoked when the application is launched normally by the end user . Other entry points will be used such as when the application is launched to open a specific file .
protected override void OnLaunched(LaunchActivatedEventArgs e)
        {
#if DEBUG
            if (System.Diagnostics.Debugger.IsAttached)
            {
                this.DebugSettings.EnableFrameRateCounter = true;
            }
#endif
            if (!(Window.Current.Content is Frame rootFrame))
            {
                rootFrame = new Frame();
                rootFrame.NavigationFailed += OnNavigationFailed;
                if (e.PreviousExecutionState == ApplicationExecutionState.Terminated)
                {
                }
                Window.Current.Content = rootFrame;
            }
            if (e.PrelaunchActivated == false)
            {
                if (rootFrame.Content == null)
                {
                    rootFrame.Navigate(typeof(MainPage), e.Arguments);
                }
                Window.Current.Activate();
            }
        }
protected override void OnLaunched ( LaunchActivatedEventArgs e ) { if DEBUG if ( System . Diagnostics . Debugger . IsAttached ) { this . DebugSettings . EnableFrameRateCounter = true ; } endif if ( ! ( Window . Current . Content is Frame rootFrame ) ) { rootFrame = new Frame ( ) ; rootFrame . NavigationFailed += OnNavigationFailed ; if ( e . PreviousExecutionState == ApplicationExecutionState . Terminated ) { } Window . Current . Content = rootFrame ; } if ( e . PrelaunchActivated == false ) { if ( rootFrame . Content == null ) { rootFrame . Navigate ( typeof ( MainPage ) , e . Arguments ) ; } Window . Current . Activate ( ) ; } }
Invoked when the application is launched normally by the end user.
Invoked when the application is launched normally by the end user .
// Do not repeat app initialization when the Window already has content, // just ensure that the window is active // Create a Frame to act as the navigation context and navigate to the first page //TODO: Load state from previously suspended application // Place the frame in the current Window // When the navigation stack isn't restored navigate to the first page, // configuring the new page by passing required information as a navigation // parameter // Ensure the current window is active
e
LaunchActivatedEventArgs
Details about the launch request and process.
Details about the launch request and process .