I added to my WindowsForm APP a new WPF window called novoLogin.
After adding it, i added the system.xaml reference....debug fine.
Now I'm trying to open this new window from the existing windowsForm.
novoLogin nl = new novoLogin();
This brief article explains how you can achieve this.
If you find yourself in need to open a WPF Window from a WinForms program, this is one way to do it (works for me):
WPF Custom Control Library
From your WinForms app, create and open the WPF Window
using System; using System.Windows.Forms; using System.Windows.Forms.Integration; var wpfwindow = new WPFWindow.Window1(); ElementHost.EnableModelessKeyboardInterop(wpfwindow); wpfwindow.Show();