MS invented another URI format for WinRT resources. For example, to set the Image.Source attribute on WinRT Metro App follow this steps:
- Define a new Image
- Add the Source attribute in the code behind
Image image = new Image(); image.Source = new BitmapImage(new Uri("ms-resource://MyAssembly/.../image.png", UriKind.ReletiveOrAbsolute));
You’ve to add the path above to locate the resouce in WinRT Metro App.