Repository navigation
[TrayIcon] Unify tray menus with WinUI on Windows 10 and 11 - #931
Merged
Merged
Conversation
Contributor
Author
|
I fixed the Win10 border by clearing WS_OVERLAPPEDWINDOW, setting WS_POPUP, and applying SWP_FRAMECHANGED on the hidden host (source). ShouldConstrainToRootBounds = false lets the menu render outside the zero-sized host. This may resolve the extra border in our Win10 tests while keeping the standard WinUI MenuFlyout. btw the extra border came from the hidden host window. I removed its WS_OVERLAPPEDWINDOW styles, set WS_POPUP, and applied SWP_FRAMECHANGED. Setting ShouldConstrainToRootBounds = false lets the WinUI menu render outside the zero-sized host |
neon-nyan
requested changes
Nov 14, 2026
neon-nyan
approved these changes
Nov 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Main Goal
Use a WinUI tray menu on Windows 10 &11, fixing extra host-window borders.
PR Status :
27c1570c)d478585d)Changelog
[New] Use WinUI tray menu for Windows 10 & 11.
[New] Add Fluent-icon for buttons (I tried to make it refresh menu state before opening, and create the reusable host on demand)
[Fix] Extra borders or background from appearing around the menu.
Debug & Release build successfully.
completed checks and test on Windows builds 17763&18362,&26300