C# win_app_form project (my strat up project ),but when I give an instance of it (wpf project ) ,error occurs.
what should I do ? in generally can we use a wpf(blend 3) project in visual studio as a reference?!
In my win form I have a button for example like this
private void button1_Click(object sender, EventArgs e)
{
wpfapp.App wpfinstance = new wpfapp.App(); //is it true?
wpfinstance. //what should i write here , it has only InitializeComponent property that gives error .
} how can I instance new wpf_window in my win_form(visual studio) and show it??!
The only way is creating usercontrol(as .dll)??? is there any way to run my wpf app by pressing a win form button???
Raaj KumarPosted Mar 2, 2010, 4:54 AM
From my knowledge it is not possible. What you can do is like create a WPFControl Library project and implement that inside win forms. It like starting a console application inside a button click. So try using the library project.
Check this link for more information,
http://msdn.microsoft.com/en-us/library/ms745781.aspx
Regards,
raaj