There are two assemblies there. For example A and B. The images are situated in the project A: /Resources/images/Question.png. When I call Window of assembly A from its project, - everything is OK. The picture is there.
When I call Window of assembly A from assembly B. -Window itself is OK. The picture is missing.
Is there a way to solve this issue?
private void SetImage(string imageName)
{
string uri = string.Format("/Resources/images/{0}", imageName);
var uriSource = new Uri(uri, UriKind.RelativeOrAbsolute);
img.Source = new BitmapImage(uriSource);
}
thank you.