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:
using Windows.UI.Popups;
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.
Omar Elabd
Omar Elabd is a software developer specializing within the .NET Framework. He has experience in developing Web and Desktop based applications using ASP.NET, MVC, WebAPI and WPF.
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