Open JaiganeshKumaran opened 3 years ago
Also the height of the custom "title bar icons" when the title bar is extended is very small compared to modern Windows apps making it inconsistent and not that touch friendly. I think the size should be same as most modern apps
In addition to making the context menu not look Win32 by default, it would be great to also have options to fully customize the title bar context menu too with custom menu items.
@pratikone and @Austin-Lamb FYI
The Win32 context menu can already be customized, by calling the GetSystemMenu API and then using APIs like InsertMenuItem and RemoveMenu.
But yes, a modern context menu would be nice and I've already achieved it in my xaml islands implementation. It's actually one of the reasons I'm staying on xaml islands for now (besides the obvious fact winui 3 won't support islands at launch)
Related: https://github.com/microsoft/ProjectReunion/issues/95
@marb2000 on these suggestions
Another thing is that the current title bar looks white even in dark mode. While you can extend to title bar and draw a custom one, I expect the default one to be dark in dark mode. There's an undocumented way to get the default Win32 title bar to be dark in dark mode which WinUI 3 could apply.
Another thing is that the current title bar looks white even in dark mode. While you can extend to title bar and draw a custom one, I expect the default one to be dark in dark mode. There's an undocumented way to get the default Win32 title bar to be dark in dark mode which WinUI 3 could apply.
That particular context menu is handled by the Window's Shell team. It's on them to fix it.
Apps can have special handling and show a custom context menu here. WinUI 3 doesn't need to wait on the shell team.
This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 5 days.
There is still an argument for using - by default - a modern style context menu, instead of the Win32 one. Especially with Xaml Windows and when Extending into the Title Bar area...
Marking it as a feature request for better tracking
Today WinUI desktop uses the old title bar context menu which is used in UWP apps and old Win32 apps while the tooltip is modern. This weird combination should be eliminated and the context menu should be a modern XAML one