
URIs Relative to the Referencing XAML
A relative URI without a leading slash represents a location relative to the referencing XAML. If you use a relative URI in code, then the referencing XAML is the XAML that your code manipulates.
If the referencing XAML is located in a folder, you can refer to files in other folders relative to that location. However, you cannot search above the application root. For example: "../resources/image.png". This URI searches in a resources folder at the same level as the folder that contains your XAML, assuming that folder is not the application root.
If the referencing XAML is loaded from the application package, but the referenced resource file is not found, then the default fallback mechanism is used. The path of the referencing XAML in the application package is used to look on the server. For example, consider a XAML file in the following location within the application package: /pages/xaml/MyPage.xaml. In this case, the fallback mechanism will look for "../resources/image.png" on the server at the following location: /pages/resources/image.png.
If the referencing XAML is compiled into an assembly, then the resource file must be embedded in the same assembly. In this case, the URI fallback mechanism is the one provided by the ResourceManager class. This fallback mechanism uses language and culture settings to look for a resource file in a satellite assembly. For more information, see Localizing Silverlight-based Applications.