Set Title of a MessageDialog

Set Title of a MessageDialog in a Windows Store app
  • 1754

using Windows.UI.Popups;


The Content property represents the text message to be displayed. The following code snippet sets and gets the content of a message dialog.

messageDialog.Content = "Hello Windows Store App.";

string message = messageDialog.Content;

 

The Title property of represents the title of the dialog and appears in the title bar. The following code snippet sets and gets the title of a message dialog.

messageDialog.Title = "Hello Windows";

string title = messageDialog.Title;


Here is complete sample code >>


Categories

More Articles

© 2019 DotNetHeaven. All rights reserved.