开发者

how to Read a folder on local machine and load them in a silverlight control?

开发者 https://www.devze.com 2022-12-28 02:58 出处:网络
I am implementing a silverlight application in that I need to read a folder which has images in it. That folder is in my local machine. I want to access that folder to my silverlight code behind.After

I am implementing a silverlight application in that I need to read a folder which has images in it. That folder is in my local machine. I want to access that folder to my silverlight code behind.After that i want to load all those images into Listbox control( or any other control to display images one by one. ) to display them one by one. Here I开发者_开发百科 have next and previous buttons to move images.


You can access local files in Silverlight 4 if running as a trusted application, but not in Silverlight 3 without user interaction.

Note also "you can access only files in user folders, specifically the MyDocuments, MyMusic, MyPictures, and MyVideos folders. "


Nope you can't do this, you would need SL4 OOB with Elevated Trust to be able to this.

0

精彩评论

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

关注公众号