Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
610
Show image in XamHtmlViewer
posted

Hi,

I am adding my HTML to XamHtmlViewer. In dev it works fine - shows an image on top of it as a banner.

When I deploy it and run - it shows everything except image.

This is my image tag:

<img src='../resources/banner.png'/>

and I place image itself in Web project Resources folder. So I have /WebProject/Resources/banner.png, /WebProject/ClientBin, etc.

And I assign Html string to HtmlCode property of XamHtmlViewer:

HtmlCode = "Html goes here"

In deployed application I have Resources folder with my image.

Anybody can tell me why I don't see the image in deployed Silverlight application.

Thanks.

 

Parents
  • 27093
    posted

    Hello,

     

    I have been looking into your description however I am not sure what exactly have you done so far. Would you please explain the overall goal of your approach and if possible attach a test sample we can test out.

     

    Looking forward to hearing from you.

Reply Children
No Data