How to create a secondary window running in a new UI thread using WinUI Desktop App - C++/WinRT? #3666
Replies: 2 comments
-
To put it bluntly, the method described is completely unavailable in a desktop application. The documentation titled Windows Runtime APIs not supported in desktop apps outright states that ApplicationView, CoreApplicationView, CoreWindow and CoreDispatcher are not supported in desktop applications. The documentation for CoreApplication states that only the Properties property is available in desktop applications. |
Beta Was this translation helpful? Give feedback.
-
I haven't tried this but it appears to do the trick - https://gist.github.com/smourier/d1961e2a8d18e762746cebe5948d36db Update: Confirmed this works, but you do need to include
to ensure |
Beta Was this translation helpful? Give feedback.
-
Hi all, I'm referring to this article https://learn.microsoft.com/en-us/windows/apps/design/layout/application-view and cannot find a way to create a second window running in its own thread. I know this feature is still experimental, but how to try it out?
Thank you in advance!
Kind regards
Alfred
Beta Was this translation helpful? Give feedback.
All reactions