I had this code, and it worked fine:
if(auto dialog=ref new Windows::UI::Popups::MessageDialog(ref new Platform::String(L"title"), ref new Platform::String(L"error")))
{
//dialog->Commands->Append(ref new Windows::UI::Popups::UICommand("OK", ref new Windows::UI::Popups::UICommandInvokedHandler(this, &Exiter::onOK)));
dialog->ShowAsync();
}
But ever since I've updated the Windows to latest Creators Update, and my Visual Studio 2015 to 2017 and latest Windows UWP SDK, then this code doesn't work anymore. Nothing happens, no message box is displayed anymore. Am I doing something wrong or is there a bug in latest Windows UWP SDK?
After updating VS 2017, and using latest 10.0.15063.0 SDK, the problem went away.