How to open a WPF window from a Form and vice versa, and still having the VS debugger debug them?
-
24-05-2021 - |
문제
Usually I open a new window like this:
new Sensors(this).Show();
this.Hide();
But this method doesn't work when I try to open a WPF window from a Form and vice versa, So I did this:
System.Diagnostics.Process.Start(appAddress);
this.Close();
The promblem when its done this way is that the debugger won't debug the new Form/Window.
Is there a way to do this without having this problem?
해결책
Does this work (untested)?
http://weblogs.asp.net/jdanforth/archive/2008/07/29/open-a-wpf-window-from-winforms.aspx
다른 팁
1- of course the debugger will not work, cuz you make the windows open a new app, in the debug mode your app is working under Visual Studio
2- i checked this problem and it works fine, thats mean you did something wrong, just check your reference.
제휴하지 않습니다 StackOverflow