Use local images in Webbrowser control

前端 未结 4 518
情深已故
情深已故 2020-11-29 13:06

I\'m using a Webbrowser Control in my Wp7 app, but I can\'t seem to put images that are in the App directory, in the webbrowser.

I\'ve put some images in a folder in

4条回答
  •  孤街浪徒
    2020-11-29 13:48

    You will need to store your images in the Isolated Storage and then display the images from there. I have put together a sample that you can download from the following location :-

    www.smartmobiledevice.co.uk/projects/webbrowserimagesample.zip

    This is based on the MSDN article How to: Display Static Web Content Using the WebBrowser Control for Windows Phone.

提交回复
热议问题