Reputation: 3279
I use some images in ClientBin folder in my Silverlight 5 application. Everything is OK when I run it in browser, but when I change application to out of browser, images in program ClientBin are not displayed (I read them using new BitmapImage(new Uri(".....", UriKind.Relative))
)
what is going wrong here? Should I place ClientBin folder next to my Out of Browser app? where is my OOB app? how can I solve this problem?
Upvotes: 0
Views: 55
Reputation: 6629
You will need to use an absolute Uri with a fully qualified url to your images. When Silverlight is running OOB, it's not running in the context of the web site hosting the xap file, so it has no idea of what the relative path is.
Upvotes: 1