Do Windows 8 Store apps have the equivalent of MessageBox?

Do Windows 8 Store apps have something like MessageBox?

I need something like a popup to show the user, for example. when the input is incorrect or an error has occurred. Is there something already in the API or do I need to make my own?

+8
windows-store-apps microsoft-metro
source share
3 answers

You are looking for the MessageDialog class

+10
source share

The modern user interface contains the most stringent built-in error messages for input. However, if you still want a MessageBox, you can get it in a MessageDialog.

MessageDialog dlg = new MessageDialog("Message"); await dlg.ShowAsync(); 
+16
source share

If you need to get around MessageDialog's limit on the number of possible commands (three), this can be a helpful MessageBox.

0
source share

All Articles