I spent 1 hour on browsing internet and trying to find a way how to load Uri to content image and create an BitmapImage.
That is what I have:
{
Uri x = new Uri("/Images/appbar.chevron.up.png", UriKind.Relative);
BitmapImage bi = new BitmapImage(x);
return x;
}
Images in Solution Explorer are just under project:
And each image have Build Action as Content
I'm recieving The given System.Uri cannot be converted into a Windows.Foundation.Uri. Please see http://go.microsoft.com/fwlink/?LinkID=215849 for details.
on creating BitmapImage, but debugger showes me that Uri was created:
Please tell me, how can I load selected image?