In a porting from WinForm to WPF, I setted up a WindowsFormsHost that hosts all my old Form.
I'm setting the form as child in a setter like this:
set{
try{
windowsFormsHost.Child = value;
}
catch{}
}
Then, I noticed that if the Load function of the form (value in this case) throws an exception, the function just go further and I cannot see the exception. Even if I use a try catch block, nothing happens.
How can I catch the exceptions thrown by value load?