简体   繁体   English

WPF C#OpenFileDialog不显示网络存储

[英]WPF C# OpenFileDialog does not show Network Storage

At the moment i am working on a C# WPF-Project. 目前,我正在从事C#WPF项目。 It uses the Microsoft.Win32.OpenFileDialog and the System.Windows.Forms.FolderBrowserDialog, which both work as expected except for the following problem: 它使用Microsoft.Win32.OpenFileDialog和System.Windows.Forms.FolderBrowserDialog,它们都按预期工作,除了以下问题:

They both do not show my Networkdrives! 他们都没有显示我的网络驱动器! While the default Windows explorer (Win 8.1 btw.) and the OpenFileDialog in an older Winforms-Project do show all the devices, the WPF Application only shows local drives. 虽然默认的Windows资源管理器(Win 8.1 btw。)和较旧的Winforms-Project中的OpenFileDialog确实显示了所有设备,但WPF应用程序仅显示了本地驱动器。 I have no Idea why this happens and how to fix it. 我不知道为什么会这样以及如何解决它。 Any ideas? 有任何想法吗?

Apparently this happens when the application runs with elevated permissions like bernd commented on my question. 当应用程序以提升的权限(例如bernd对我的问题发表评论)运行时,显然会发生这种情况。

Look at this MSDN Post for all the details. 有关所有详细信息, 请参见此MSDN帖子

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM