Skip to content

Clean-up AppWindow sample to use WinAppSDK DispatcherQueue - #415

Merged
Jeffrey Stall (jeffstall) merged 2 commits into
mainfrom
user/jeffstall/secureui
Mar 7, 2025
Merged

Clean-up AppWindow sample to use WinAppSDK DispatcherQueue#415
Jeffrey Stall (jeffstall) merged 2 commits into
mainfrom
user/jeffstall/secureui

Conversation

@jeffstall

Copy link
Copy Markdown
Contributor

Description

Changing AppWindow sample:

  1. Upgrade MyAppWindow to be a proper Cpp/WinRT object, which makes it much easier to add event handlers.
  2. Use Microsoft.UI.Dispatching.DispatcherQueue to create a proper Win32 message loop.
  3. Have the Microsoft..DispatcherQueue create and own the system Windows..DispatcherQueue that's needed for Windows..Composition.
  4. Simplify out the WNDPROC and WNDCLASS to just create an AppWindow.

Target Release

1.6

Checklist

  • Samples build and run using the Visual Studio versions listed in the Windows development docs.
  • Samples build and run on all supported platforms (x64, x86, ARM64) and configurations (Debug, Release).
  • Samples set the minimum supported OS version to Windows 10 version 1809.
  • Samples build clean with no warnings or errors.
Changing AppWindow sample:
1. Use Microsoft.UI.Dispatching.DispatcherQueue to create a proper Win32 message loop.
2. Have the Microsoft..DispatcherQueue create and own the system Windows..DispatcherQueue that's needed for Windows..Composition.
3. Simplify out the WNDPROC to just create an AppWindow.
@jeffstall
Jeffrey Stall (jeffstall) deleted the user/jeffstall/secureui branch March 7, 2025 18:40
shisan (qiutongMS) pushed a commit that referenced this pull request Aug 24, 2026
Port the native Windowing runtime changes from main@d3922307 (PR #415), originally under Samples/Windowing/cpp/cpp-win32, while retaining central package management and the stable 1.8 SDK configuration.

Record the approved AppLifecycle and ResourceManagement packaging dispositions, exclude SecureUI, and document the pre-existing Foundation auto-initializer build failure.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants