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.
The problem was because of I created the task(c task) not from UI thread.
User contributions licensed under CC BY-SA 3.0