Bug 1682522 Comment 5 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

(In reply to :Gijs (he/him) from comment #4)
> Unfortunately, they are not at all documented, AFAICT, and the ones that are have limited availability
Most of them are drawn by the various applications themselves, at which point the argument tilts in favour of us just using CSS.

> The more modern ones seem to involve "create a XAML island inside your app" which will create a lot of unnecessary complication, and require us to create XAML for all our menus. Windows is also working on yet another refresh ( https://docs.microsoft.com/en-gb/windows/apps/winui/winui3/get-started-winui3-for-desktop#create-a-winui-3-desktop-app-for-cwin32 ) slated for later this year (maybe?), which again requires XAML (as well as MSIX packaging).

It's even worse than that: The current implementation of XAML islands allows for attaching an island only to one top-level `HWND` per thread. Maybe this will change in WinUI 3, but as of right now the stable implementation of XAML islands is fundamentally incompatible with the Win32 widget.
(In reply to :Gijs (he/him) from comment #4)
> Unfortunately, they are not at all documented, AFAICT, and the ones that are have limited availability

Most of them are drawn by the various applications themselves, at which point the argument tilts in favour of us just using CSS.

> The more modern ones seem to involve "create a XAML island inside your app" which will create a lot of unnecessary complication, and require us to create XAML for all our menus. Windows is also working on yet another refresh ( https://docs.microsoft.com/en-gb/windows/apps/winui/winui3/get-started-winui3-for-desktop#create-a-winui-3-desktop-app-for-cwin32 ) slated for later this year (maybe?), which again requires XAML (as well as MSIX packaging).

It's even worse than that: The current implementation of XAML islands allows for attaching an island only to one top-level `HWND` per thread. Maybe this will change in WinUI 3, but as of right now the stable implementation of XAML islands is fundamentally incompatible with the Win32 widget.

Back to Bug 1682522 Comment 5