September 2012
Intermediate to advanced
464 pages
10h 55m
English
A dialog box is a Window that is typically used to get some data from the user, before some operation can proceed. This is sometimes referred to as a modal window (as opposed to modeless, or non-modal). In this recipe, we'll take a look at how to create and manage such a dialog box.
Make sure Visual Studio is up and running.
We'll create a dialog box that's invoked from the main window to request some information from the user:
CH05.Dialogs.Window named DetailsDialog.xaml (a DetailsDialog class is created).DetailsDialog.xaml. Set some Window properties: FontSize to 16, ResizeMode to NoResize, SizeToContent to Height, and make sure the ...