How to display Message Box in Windows Store Universal App ?
If you are looking out for a sample code snippet to demonstrate how to display Message Box in Windows Sore Universal App , below is a sample code snippet that demonstrates how to do it.
How to display Message Box in Windows Store Universal App ?
MessageDialog dialog = new MessageDialog("Do you want to View Abundantcode website?" , "Information"); await dialog.ShowAsync();
C#
x
2
1
MessageDialog dialog = new MessageDialog("Do you want to View Abundantcode website?" , "Information");
2
await dialog.ShowAsync();

Share this:
Leave Your Comment
Trending Stories
-
SQL Questions Asked in Meesho | SQL Preparation Packet |... youtube.com
-
JOINS in SQL Explained – SQL JOINS Tutorial For Beginners youtube.com
-
SQL Stored Procedures (English) with Amr Elhelw – Tech Vault youtube.com
-
SQL Challenge: Calculate Contest Percentages Like a Pro! youtube.com
-
Web Security 101: How to Defend Against Modern Threats &... youtube.com
Recent Stories
-
SQL Questions Asked in Meesho | SQL Preparation Packet |... youtube.com
-
JOINS in SQL Explained – SQL JOINS Tutorial For Beginners youtube.com
-
SQL Stored Procedures (English) with Amr Elhelw – Tech Vault youtube.com
-
SQL Challenge: Calculate Contest Percentages Like a Pro! youtube.com
-
Web Security 101: How to Defend Against Modern Threats &... youtube.com
Tags
.NET Errors
App
ASP.NET
ASP.NET MVC
C#
C# Errors
C# programs
c lab programs
COBOL Error Messages
C program
csharp
database
Database Error Messages
DB2 Error Messages
Delphi Errors
Erply API
Google Play
guide
How to
IBM Application Discovery and Delivery Intelligence
IBM InfoSphere Information Server
IBM QRadar
IBM Workload Automation
InterSystems IRIS Errors
Java
Javascript
Lab programs
LINQ
List
MariaDB Errors
MS SQL Server Error Codes
Oracle Errors
python tutorials
SQL Server
tips
tricks
TroubleShoot SQLite Errors
tutorial
tutorials
Windows 10
Windows Errors
Windows Phone
Windows Phone 8
Windows System Errors
XAML
1 Comment
For testing purposes one could also make a class like the next one. Below the code a usage example:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Windows.UI.Popups;
namespace someApp.ViewModels
{
public static class Msgbox
{
static public async void Show(string mytext)
{
var dialog = new MessageDialog(mytext, “Testmessage”);
await dialog.ShowAsync();
}
}
}
The example to use it in a class
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace someApp.ViewModels
{
public class MyClass{
public void SomeMethod(){
Msgbox.Show(“Test”);
}
}
}