May 2010
Intermediate to advanced
1272 pages
61h 18m
English
In WPF 4 common dialogs are wrappers of Win32 dialogs. They are exposed by the Microsoft.Win32 namespace and are OpenFileDialog and SaveFileDialog. (WPF also provides a PrintDialog control exposed by the System.Windows.Controls namespace.) The following code demonstrates how you instantiate both dialogs:

Notice that the ShowDialog method returns a Nullable(Of Boolean) where True means that the user clicks OK, False when she clicks Cancel, and Nothing when she closes the dialog.
In this chapter you took an overview of WPF’s most common used controls that you can use in your client applications, understanding how ...
Read now
Unlock full access