In a styled WPF application, I need to write a custom file browser in C#/WPF. As it is styled differently to generic Windows apps, I cannot use the standard open file dialogs. Writing a tree or breadcrumb is easy enough when it just needs to browse physical local drives. But how do I browse the machine and networks using the namespaces like Desktop, Network, Public etc.? I can write namespace extensions fine, it's just the viewer side I'm stuck on. Cheers, Tim
Hi Tim, This is a quick note to let you know that I am performing research on this issue and will get back to you as soon as possible. I appreciate your patience. Regards, Walter Wang (wawang@online.microsoft.com, remove 'online.') Microsoft Online Community Support ================================================== When responding to posts, please "Reply to Group" via your newsreader so that others may learn and benefit from your issue. ================================================== This posting is provided "AS IS" with no warranties, and confers no rights.
Hi Tim, Based on my understanding, you are trying to create a custom file browser to replace the standard common file dialogs in C#/WPF. Although this is not recommended, to be able to enumerate the contents in those special folders like Network, we will need to use the shell interfaces to do this. Here's some third party sample code in VB.NET doing this: CodeProject: An All VB.NET Explorer Tree Control with ImageList Management. Free source code and programming help (http://www.codeproject.com/KB/cpp/VbNetExpTree.aspx) Regards, Walter Wang (wawang@online.microsoft.com, remove 'online.') Microsoft Online Community Support ================================================== When responding to posts, please "Reply to Group" via your newsreader so that others may learn and benefit from your issue. ================================================== This posting is provided "AS IS" with no warranties, and confers no rights.