I've been looking at the XAML Images sample project and the XAML to load an image in that sample looks like this:
<Image Source="Assets/image1.jpg"/>
However, in my own project I find that I cannot load any images like that. If I try I get E_NETWORK_ERROR when I handle the ImageFailed. Instead, I discovered that I have to use the ms-appx:/// prefix like this:
<Image Source="ms-appx:///Assets/image1.jpg"/>
Then it works. Any ideas what's different about my project vs the sample that would cause this?
Have you tried "<Image Source="/Assets/image1.jpg>
"?
M working on Windows phone 8 at i used this.
OrderImage1.Source = new BitmapImage(new Uri("///Assets/images/order_bread.png"));
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With