Create second AppWindow and show it

1

I use:

auto c = Concurrency::create_task( Windows::UI::WindowManagement::AppWindow::TryCreateAsync());
c.then([](Windows::UI::WindowManagement::AppWindow^ aw) { aw->TryShowAsync(); });

But it returns HRESULT:0x80070490 Element not found.

c++
uwp
asked on Stack Overflow May 21, 2020 by wirkl

1 Answer

0

The problem was because of I created the task(c task) not from UI thread.

answered on Stack Overflow Jun 4, 2020 by wirkl

User contributions licensed under CC BY-SA 3.0