Hi, I'm trying to place a WindowsFormsHost in a ContentPane, but I'm experiencing problems when trying to resize the SplitPane that contains it all. Please take a look at my sample. If you run the sample, the panes are all empty and you will notice that the panes can be resized without any problems. Now, if you uncomment the WindowsFormsHost in the XAML and run the sample again, the application will crash when you try to resize a splitpane. The exception is an InvalidOperationException saying "Specified element is already the logical child of another element. Disconnect it first.". What am I doing wrong?
Regards, Stefan
I discovered something peculiar today. When you change the assemblies back to version 11.2.20112.2125, the problem does not occur. This seems to be something in version 14.1.20141.2027
Is this issue a bug?
Hello Stefan,
I followed the steps you suggested and was unable to reproduce the behavior you're describing. I am able to resize the split panes on my screen when the WindowsFormsHost is in the ContentPane.
My test was performed using version 14.1.20141.2027 in Infragistics for WPF 2014 Volume 1.
This makes me believe that the issue could be caused by environmental differences on our machines. Please provide the specific version of the .NET Framework that you have installed on your machine. This type of issue could be caused by a difference in the framework.
Any other environmental details or possible differences that you could include may be helpful as well for me to be able to continue to assist you.
Sincerely,AndrewDeveloper Support IInfragistics Inc.www.infragistics.com/support
If it is not too much trouble, please provide the most recent specific version of the .NET Framework or any other environmental details that you feel could help me assist you further.
Please let me know if you have any other questions or concerns.
Hi Andrew,
Apologies for my late response, I have been on vacation for a while. But you are right. I just tested the sample on another machine and there it worked. The machine that failed has the following system configuration:
Windows XP Professional, Version 2002, SP3, with windows theme set to 'Windows Classic', .NET framework version 4.0.30319
If you require more details please ask.
I just tested again on a Windows 7 and there it worked. I'll try to update the Win XP machine as much as possible, and see whether that helped. The XP machine is just a development machine, but our customers are running usually Windows 2003 or 2008 Server. Do you expect the problem there?
Thanks for helping.
Hello,
I have also found that the problem also occurs on a Windows Server 2003 (Standard edition in my case), but NOT on a Windows Server 2008 R2.
I have discovered that this problem can be fixed by installing .NET framework 4.5; I was running on .NET Framework 4.0 before.