问题
Do Windows 8 Store apps have something like a MessageBox?
I need something like a popup window to show the user e.g. when a input is wrong or a error happened. Is there something already in the API or do I have to make my own?
回答1:
You're looking for the MessageDialog class
回答2:
Modern UI guidelines sugest inline error messages for input. However, if you still want a MessageBox, you can have it in the MessageDialog.
MessageDialog dlg = new MessageDialog("Message"); await dlg.ShowAsync();
回答3:
In case you have to bypass MessageDialog's limitation on the number of possible commands (three), this MessageBox implementation might be helpful.
来源:https://stackoverflow.com/questions/13903494/do-windows-8-store-apps-have-a-messagebox-equivalent