gurehbgui
gurehbgui

Reputation: 14684

Do Windows 8 Store apps have a MessageBox equivalent?

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?

Upvotes: 8

Views: 10330

Answers (3)

Stefan
Stefan

Reputation: 77

In case you have to bypass MessageDialog's limitation on the number of possible commands (three), this MessageBox implementation might be helpful.

Upvotes: 0

danielrozo
danielrozo

Reputation: 1442

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();

Upvotes: 16

SLaks
SLaks

Reputation: 887413

You're looking for the MessageDialog class

Upvotes: 10

Related Questions