If you are new to Windows Store app development, you may be wondering how to show a simple dialog. It used to be so easy. You simply called MessageBox.Show() and you had a dialog. Well, in Windows Store Applications in Windows 8, it is a bit different but just as easy.
Try this code instead of MessageBox.Show to get the following dialog…
var messageDialog = new Windows.UI.Popups.MessageDialog("Message Text.","Message Header");
messageDialog.ShowAsync();
Happy Windows Store App Coding!
LiveJournal Tags: MessageDialog,Dialog,DialogBox,MessageBox,wpf,xaml,c#,Metro Application,Windows Store App,Windows 8
No comments:
Post a Comment