Windows::UI::Popups::MessageDialog 停止工作
Windows::UI::Popups::MessageDialog stopped working
我有这段代码,它运行良好:
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();
}
但是自从我将 Windows 更新到最新的 Creators Update,并将我的 Visual Studio 2015 年至 2017 年和最新的 Windows UWP SDK 更新后,此代码就不起作用了。没有任何反应,不再显示消息框。
是我做错了什么还是最新的 Windows UWP SDK 有错误?
更新 VS 2017 并使用最新的 10.0.15063.0 SDK 后,问题消失了。
我有这段代码,它运行良好:
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();
}
但是自从我将 Windows 更新到最新的 Creators Update,并将我的 Visual Studio 2015 年至 2017 年和最新的 Windows UWP SDK 更新后,此代码就不起作用了。没有任何反应,不再显示消息框。 是我做错了什么还是最新的 Windows UWP SDK 有错误?
更新 VS 2017 并使用最新的 10.0.15063.0 SDK 后,问题消失了。