c# - Connect WinForms project with WPF project -


i need connect wpf project winforms project.

i have 1 project done in winforms ("classroom") , project done in wpf ("activityroom"). in winforms project i've got form called mainform , in wpf project have window called mainwindow.

i need open mainwindow clicking button in mainform.

how can this?

you can open window same way wpf application directly:

private void button1_click(object sender, eventargs e) {     var wpfwindow = new wpfproject.mainwindow();     wpfwindow.show(); } 

you need add references wpf assemblies winforms project work.

also note open window. won't run code app.xaml.cs, if have any.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -