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