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.