Skip to Content
Hidden WPF: Secrets for Creating Great Applications in Windows Presentation Foundation
book

Hidden WPF: Secrets for Creating Great Applications in Windows Presentation Foundation

by Alessandro Del Sole
February 2013
Beginner to intermediate
68 pages
1h 50m
English
Sams
Content preview from Hidden WPF: Secrets for Creating Great Applications in Windows Presentation Foundation

In Practice: Interoperability with the FolderBrowseDialog Control

WPF still doesn’t offer a counterpart for the FolderBrowseDialog control in Windows Forms, so let’s create one. Follow these steps:

1. Create a new project of type WPF User Control.

2. Add references to System.Windows.Forms.dll and WindowsFormsIntegration.dll.

3. Add a new code file called WpfFolderBrowseDialog, which is where you write custom code.

Now let’s start thinking in a WPF-oriented way. Since the original FolderBrowseDialog control from Windows Forms has its own properties (such as SelectedPath or Description), it can be interesting to expose them to the external world so that users can use information sent by the control, or set its properties. Since the value of these ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Pro WPF in C# 2010: Windows Presentation Foundation in .NET 4

Pro WPF in C# 2010: Windows Presentation Foundation in .NET 4

Matthew MacDonald
WPF in Action with Visual Studio 2008

WPF in Action with Visual Studio 2008

Arlen Feldman, Maxx Daymon

Publisher Resources

ISBN: 9780133432473