Paste Windows Explorer into a WPF user control

Can I embed Windows Explorer in a WPF user control (or a Windows Forms user control, which can then be displayed in a WPF control using a WindowsFormsHost object)?

I know that I can write a user control that displays the contents of the directory and navigation buttons, etc., but I want it to look EXACTLY like Windows Explorer, including Favorites, Libraries, Network, etc. .d. Windows Explorer also looks different depending on the operating system you are using, and ideally I would like it to be reflected in my application.

I searched googled and no luck. The closest I came was: http://gong-shell.sourceforge.net/ , but when I tried to inject it into a WPF control, it started to behave very strange and brought out controls that were completely separate from it to stop working.

I could be wrong, but considering that we have the OpenFileDialog, SaveFileDialog, and FolderBrowserDialog windows, I would think that there would also be a control for viewing Windows Explorer.

Thank you in advance for your help.

+4
source share
2 answers

I don't see anything direct providing as a control, but MS does provide walking information to create one using the Windows form http://msdn.microsoft.com/en-us/library/ms171645.aspx

Once you create this as a Windows form control, you can place it in WPF in the Walkthrough http://msdn.microsoft.com/en-us/library/ms751761.aspx

But then the thing is, mix two different platforms and make them more difficult for yourself, instead create a Windows Explorer in WPF

+1
source

You probably want to take a look at the Explorer browser control in the Windows API Code Package . As far as I can tell, this is exactly what you want.

-1
source

All Articles