If you want to use MessageBoxes with your Windows Phone 8.1 Applications instead of using MessageBox you’ll need to use MessageDialog.
Make sure to include the following using statement:
The code to launch a message box is as follows:
MessageDialog msgDialog = new MessageDialog("Works in Windows Phone 8.1"); //launch the dialog await dialog.ShowAsync();
Hope that helps.
Latest posts by Omar Elabd (see all)
- Exporting Objects from the Visual Studio Debugger - February 21, 2015
- Automatically generating Repository and Unit Of Work classes - February 2, 2015
- Generating C# Classes from Excel - January 27, 2015