how can i make a messagebox on windows 10 (modern) Universal app Platform (UWP) like on windows clasic form(messagebox.show)? thanks
Asked
Active
Viewed 6,052 times
3 Answers
4
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 Hello");
await dialog.ShowAsync();

Khawar Islam
- 2,556
- 2
- 34
- 56
3
You can do this:
var dialog = new MessageDialog("Your message here");
await dialog.ShowAsync();
-
it's works with windwos 10 last SDK? – Reuven Herszkowicz Feb 14 '16 at 15:41
-
yes, it does..just add: using Windows.UI.Popups; – Feb 14 '16 at 15:44
1
var dialog = new MessageDialog("Hello World");
await dialog.ShowAsync();

Ken Tucker
- 4,126
- 1
- 18
- 24
-
-
There is a title property you can set https://msdn.microsoft.com/en-us/library/windows/apps/windows.ui.popups.messagedialog.title – Ken Tucker Feb 14 '16 at 15:44
-