How to use a FolderBrowserDialog from a WPF application

Posted by Craig Shearer on Stack Overflow See other posts from Stack Overflow or by Craig Shearer
Published on 2008-11-24T19:26:52Z Indexed on 2010/12/31 1:54 UTC
Read the original article Hit count: 636

Filed under:
|

I'm trying to use the FolderBrowserDialog from my WPF application - nothing fancy. I don't much care that it has the Windows Forms look to it.

However, when I call ShowDialog, I want to pass the owner window which is an IWin32Window. How do I get this from my WPF control?

Actually, does it matter? If I run this code and use the ShowDialog overload with no parameters it works fine. Under what circumstances do I need to pass the owner window?

Thanks,

Craig

© Stack Overflow or respective owner

Related posts about wpf

Related posts about winapi