というモジュールがありますxModule
。その中には。とマークされた画像embedded resource
があります。
モジュールの初期化の中で私は試しました:
string stFileName = "SmallIcon.png";
string stAssembly = "xModule"; // That's the full name of the assembly
//img.BeginInit();
Uri uri = new Uri(String.Format(@"/{0};component/Images/{1}", stAssembly , stFileName),
UriKind.Relative);
ImageSource imgSource = new BitmapImage(uri);
ImageSource imgSource =..
行のブレークポイントに到達しているImageSource
ときに、画像が見つからないようです...
なんで?どうしたの?
エラーは発生しません。アセンブリが参照されています。Xamlで同様のことをしましたが、うまくいきました。また使用:VS11、Unity