Run WPF Application from another assembly
Posted
by Ricibald
on Stack Overflow
See other posts from Stack Overflow
or by Ricibald
Published on 2010-04-29T08:08:15Z
Indexed on
2010/04/29
8:17 UTC
Read the original article
Hit count: 359
I want to run my wpf application "A" from another assembly "B".
I use the following code:
static void main()
{
var app = new A.App();
app.InitializeComponent();
app.Run();
}
when i run my app I got the following error:
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'.
How can I transfer from B images and resources info to A? Thanks!
© Stack Overflow or respective owner