Re: Modernize wxMSW with WinUI (Issue #19352)

222 views
Skip to first unread message

Jaiganésh Kumaran

unread,
Dec 9, 2022, 6:49:12 AM12/9/22
to wx-...@googlegroups.com, wxtrac, Author

Any update on this? I really want apps using cross-platform frameworks like wxWidgets to look modern with Fluent design on Windows.


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: <wxWidgets/wxWidgets/issues/19352/1344210662@github.com>

Grant Kim

unread,
Feb 5, 2023, 9:35:08 PM2/5/23
to wx-...@googlegroups.com, wxtrac, Author

Screenshot 2023-02-06 110832

I would like to share about this implementation.
There are two way to implement this.
The first one is use Windows APP SDK. but this method is not really streamlined at this point because it is not possible to release a traditional binary form (e.g. statically linked single exe file or such) and I wasn't able to find statically link the "Microsoft.WindowsAppRuntime.Bootstrap.dll". Moreover, the separate WinApp runtime is required.

The last one that I tried was: use the XAML island and this one no needs to have additional dependencies.

Both way, you will can't use MinGW as your development platform unless MinGW gets WinRT related updates.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you authored the thread.Message ID: <wxWidgets/wxWidgets/issues/19352/1418415683@github.com>

VZ

unread,
Feb 6, 2023, 7:45:38 AM2/6/23
to wx-...@googlegroups.com, wxtrac, Author

Sorry, when you say "share this implementation", what do you mean exactly? I.e. what are you sharing, where is the code producing the screenshot above?


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you authored the thread.Message ID: <wxWidgets/wxWidgets/issues/19352/1419025227@github.com>

Grant Kim

unread,
Feb 6, 2023, 9:31:28 AM2/6/23
to wx-...@googlegroups.com, wxtrac, Author

I meant to share some information about what I have done.
Of course, it is not even close to be finished but I'm trying to implement UWP/WinUI in various ways. I'm not sure I'm going to dig this further, but I'll update once it gets some progress.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you authored the thread.Message ID: <wxWidgets/wxWidgets/issues/19352/1419176412@github.com>

VZ

unread,
Feb 6, 2023, 9:42:48 AM2/6/23
to wx-...@googlegroups.com, wxtrac, Author

If you have something that builds and is at least somewhat useful, please don't hesitate to already submit a PR with your changes, it's not a problem if it's incomplete. In fact, it would be much simpler to integrate any such changes piecewise than as one enormous change later when/if you do complete them.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you authored the thread.Message ID: <wxWidgets/wxWidgets/issues/19352/1419194726@github.com>

Jaiganésh Kumaran

unread,
Mar 29, 2023, 11:09:27 AM3/29/23
to wx-...@googlegroups.com, wxtrac, Author

Screenshot 2023-02-06 110832

The last one that I tried was: use the XAML island and this one no needs to have additional dependencies.

While it doesn't need additional dependencies, you only get the Windows 10 styling out of the box. For the new Windows 11 style, you need to install the WinUI 2 NuGet package for XAML islands or a UWP app separately. So not a good option for self-contained and single file executables. But most apps using WinUI tend to be Store apps and it's not a problem for them.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you authored the thread.Message ID: <wxWidgets/wxWidgets/issues/19352/1488813862@github.com>

phantomhugo

unread,
Mar 29, 2023, 4:23:38 PM3/29/23
to wx-...@googlegroups.com, wxtrac, Author

I would like to add that mingw support is in their thoughts, see microsoft/WindowsAppSDK#3532


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you authored the thread.Message ID: <wxWidgets/wxWidgets/issues/19352/1489255025@github.com>

VZ

unread,
Mar 29, 2023, 6:28:55 PM3/29/23
to wx-...@googlegroups.com, wxtrac, Author

I would like to add that mingw support is in their thoughts, see microsoft/WindowsAppSDK#3532

This is nice to know, thanks for the link!


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you authored the thread.Message ID: <wxWidgets/wxWidgets/issues/19352/1489416853@github.com>

Sota Nakamura

unread,
Aug 8, 2023, 12:09:08 AM8/8/23
to wx-...@googlegroups.com, wxtrac, Author

The project in microsoft/WindowsAppSDK#3532 uses xaml, but we can use WinUI 3 controls in C++ codes without xaml and xaml island. see https://github.com/sotanakamura/winui3-without-xaml


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you authored the thread.Message ID: <wxWidgets/wxWidgets/issues/19352/1668874034@github.com>

PB

unread,
Aug 12, 2023, 3:31:56 AM8/12/23
to wx-...@googlegroups.com, wxtrac, Author

It seems little did change since my last post in this thread, i.e., WinUI 3 is still immature (may be read as "basically unusable with no light at the end of the tunnel") and no one is really using it in applications with complex UI (e.g., multiple top level windows, docking system, non-trivial dialogs). Too bad...

See also https://old.reddit.com/r/cpp/comments/15lk6fn/cwinrt_is_now_in_maintenance_mode/


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you authored the thread.Message ID: <wxWidgets/wxWidgets/issues/19352/1675764233@github.com>

Sota Nakamura

unread,
Sep 1, 2023, 7:47:36 AM9/1/23
to wx-...@googlegroups.com, wxtrac, Author

Xaml islands for WinUI 3 is supported in Windows App SDK 1.4. It makes easier to access the WinUI 3 controls from a existing C++ project.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you authored the thread.Message ID: <wxWidgets/wxWidgets/issues/19352/1702621535@github.com>

Reply all
Reply to author
Forward
0 new messages