Create a Message Dialog

How to create a MessageDialog in Windows Store app.
  • 1756

using Windows.UI.Popups;

The MessageDialog class has two constructors. The first constructor takes a single string parameter, the message to be displayed and the second constructor takes two parameters, the message and the title of the dialog. The following code snippet creates two message dialogs.

var messageDialog = new MessageDialog("Hello Windows Store App.");

var messageDialog2 = new MessageDialog("Hello Windows Store App.", "Hello Windows");


Here is complete sample code >>


Categories

More Articles

© 2020 DotNetHeaven. All rights reserved.