C# - WPF - getting folder browser dialog without using System.Windows.Forms?

Ms. Nobody picture Ms. Nobody · Apr 30, 2013 · Viewed 39.2k times · Source

I have this WPF app and I want to have there function of getting a directory path from the user. I would like to use some folder browser dialog but I don't want to implement it from System.Windows.Forms or use some huge script inside. Is there some path getting dialog in WPF already implemented?

I have read answers to similar questions here but it was full of System.Windows.Forms..

I haven't found anything like that in the Toolbox and I'm starting with WPF so I could use some help.

Thank you in advance :]

Answer

T Powers picture T Powers · Jul 18, 2013

See my answer to Select folder dialog WPF. Basically the Windows Presentation Foundation 4.5 Cookbook recommends that you use the Windows® API Code Pack for Microsoft® .NET Framework if you need a folder browser.