Skip to main content

Posts

Showing posts with the label UWP Dialog

UWP - How to use ContentDialog

UWP ContentDialog The ContentDialog class represents a dialog box that can be customized to contain checkboxes, hyperlinks, buttons, and any other XAML content. The ContentDialog() constructor initializes a new instance of the ContentDialog class. The following UWP app development tutorial creates a simple content dialog where we put a title, a message, and a primary button. Then we displayed the content dialog by calling the ContentDialog class ShowAsync() method. When users click the primary button then the content dialog hides from the app screen. The UWP app developers generally used a content dialog to request input from the app user or to show information in a modal dialog. The developers can add a ContentDialog to the app page using code or XAML, even they can create a custom dialog class that's derived from ContentDialog. The ContentDialog class Title property is used to put a title on the content dialog. But the UWP develope...

UWP - How to use MessageDialog

UWP MessageDialog The MessageDialog class represents a dialog for showing messages to the UWP app user. The MessageDialog class has two constrictors, so the .net developers can create a MessageDialog instance with these two constructors. In the following UWP app development tutorial code, we created a message dialog instance with a message and a title. To do this we used the MessageDialog class’s MessageDialog(String, String) constructor. The MessageDialog(string content) constructor initializes a new instance of the MessageDialog class to display an untitled message dialog. Here the content parameter value is a String which is the message displayed to the UWP app user. The MessageDialog(string content, string title) constructor initializes a new instance of the MessageDialog class to display a message dialog with a title. The content parameter is the message displayed to the user. And the title parameter is the title that the developers...