我想从另一个程序集“B”运行我的wpf应用程序“A”。从另一个程序集运行WPF应用程序
我使用下面的代码:
static void main()
{
var app = new A.App();
app.InitializeComponent();
app.Run();
}
当我运行我的应用程序,我得到了以下错误:
Cannot convert string '/Resources/icon.gif' in attribute 'Icon' to object of type 'System.Windows.Media.ImageSource'. Cannot locate resource 'resources/icon.gif'. Error at object 'MainWindow' in markup file 'A;component/shell/shellview.xaml'.
如何我的B图像和资源的信息传送到? 谢谢!
哪一个您使用了最后? – Archie 2010-05-04 06:41:59