Universal Apps MessageBox: “The name ‘MessageBox’ does not exist in the current context”

For Universal Apps, the new APIs require you to use await MessageDialog().ShowAsync() (in Windows.UI.Popups) to bring it into line with Win 8.1.

var dialog = new MessageDialog("Your message here");
await dialog.ShowAsync();

Leave a Comment