Exemplo n.º 1
0
        /// <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="args">Details about the launch request and process.</param>
        protected override void OnLaunched(Microsoft.UI.Xaml.LaunchActivatedEventArgs args)
        {
            m_window = new MainWindow();
            WindowWrapper windowWrapper = WindowWrapper.FromAbi(m_window.ThisPtr);

            WindowHandle = windowWrapper.WindowHandle;
            m_window.Activate();
        }
Exemplo n.º 2
0
        protected override void OnLaunched(Microsoft.UI.Xaml.LaunchActivatedEventArgs args)
        {
            DispatcherQueueSyncContext.SetForCurrentThread();
            base.OnLaunched(args);

            m_window = new MainWindow();
            WindowWrapper windowWrapper = WindowWrapper.FromAbi(m_window.ThisPtr);

            m_windowHandle = windowWrapper.WindowHandle;
            m_window.Title = "Folder Inspector (.NET Desktop WinUI 3)";
            m_window.Activate();
        }