开发者

Open folder dialog in Silverlight?

Does anybody knows how to have an open folder dialog in Silverlight? Any third party controls?

I know there is a OpenFileDialog but this is not what I'm looking 开发者_StackOverflow中文版for. I want a dialog for folders only.

Thanks.


SilverLight 4 does not provide an OpenFolderDialog control so you may have to create your own. For more info check the following link: http://dotnetslackers.com/articles/silverlight/Folder-Dialog-in-Silverlight-4.aspx


From MSDN.

Silverlight does not have a browse folder dialog box and you cannot use the OpenFileDialog to just select a folder.


A folder browser dialog would serve no purpose.

SL3 it is by deliberate design that the SL can only access a file (not a folder) and only if that file it is specifically selected by the user in the OpenFileDialog. Its not even possible to determine the folder in which the file is found.


Just create your own user control for this as this is not supported currently by Silverlight.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜