Suppose I have following projects for silverlight application: MyApp: reference to MyLib MyLib: reference to MyImage MyImage
Following code will give me error(can't find out the object):
Application.GetResourceStream(new Uri("MyImage;component/myxml.xml", UriKind.Relative))
I need to add reference to MyImage in MyApp, the I can avoid the error, but MyLib already has reference to MyImage. How to modify the code to load the resource without the adding the duplicated reference in MyApp?