Using a child window as a dialog window


show more Using a child window as a dialog window provides you with in-depth training on Developer. Taught by Walt Ritscher as part of the Silverlight 5 Essential Training show less
please wait ...

Using a child window as a dialog window

The purpose of a dialog window is to gather user input while blocking the user from returning to the main application UI. These windows are usually called modal windows. The ChildWindow class serves this purpose in Silverlight. For this demo I am using Visual Studio and a project called ChildWindowAsDialog. I will start by looking at my dialogs. I have two of them. I have a SimpleChild, which has the default UI, and then I have a PrintWindow dialog, which has a custom UI. It has a ListBox, a textbox with the Number of Copies, and some additional text.

Since you are interrogating the user with the dialog, you need a way to retrieve information from the child window. One category of information you need from the dialog is which action button did the user choose? Silverlight uses the DialogResult class for that purpose. On this Print dialog, I need to know whether they clicked the OK button or the Cancel button. The other information you need from the child window is stored in properties on the...

Using a child window as a dialog window
Video duration: 5m 7s 8h 52m Beginner

Viewers:

Using a child window as a dialog window provides you with in-depth training on Developer. Taught by Walt Ritscher as part of the Silverlight 5 Essential Training

Subject:
Developer
Software:
Silverlight Visual Studio
Author:
please wait ...