App instantiation #2251
Unanswered
meirumeiru
asked this question in
Q&A
Replies: 1 comment 4 replies
-
XAML Island for WinUI3 is not yet implemented : under-consideration |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to build an application that uses Xaml islands with WinUI3. The problem I have with this is, that I need to instantiate an "Application" object.
Why do I need it? Does it have to have it's own thread or something? When it runs... is it something like a "global" thing that every window then uses to link to? ... e.g. like... "registered into the thread local variables??" ... I've no idea how all this works together and how the "magic" finding of the correct objects works in the background...
How do I do this? ...
a)
winrt::MyApp::App app;
b)
winrt::Microsoft::UI::Xaml::Application::Start(
[](auto &&)
{ winrt::make(); });
c)
auto app = winrt::make();
... why does e.g. c) throw an error E_RPC_WRONG_THREAD ??
Sorry, didn't find enough information to find out what it does and how those classes work. It's hard to follow those massive amounts of template inheritance trees...
Rudolf
Beta Was this translation helpful? Give feedback.
All reactions