App.OnLaunched C# (CSharp) Method

OnLaunched() protected method

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 OnLaunched ( Microsoft.UI.Xaml.LaunchActivatedEventArgs args ) : void
args Microsoft.UI.Xaml.LaunchActivatedEventArgs Details about the launch request and process.
return void
    protected override void OnLaunched(Microsoft.UI.Xaml.LaunchActivatedEventArgs args)
    {
        m_window = new MainWindow();
        m_window.Activate();
    }