Hi,
I use Infragistics 14.2.
Is it possible, to have a Windows.Forms form with UltraDockManager as child in a WPF WindowsFormsHost?
I can see the the form correctly at runtime, but it is not possible to interact with the panes (i.e. moving them by drag&drop). Without the WindowsFormsHost everything is fine.
I use the following code for the constructor of my HostWindow to add a Windows.Forms form
<Grid> <WindowsFormsHost Name="Host" FontSize="11.33" FontFamily="Microsoft Sans Serif"/></Grid>
public HostWindow(Form f){ try { InitializeComponent(); if (f != null) { f.TopLevel = false; f.FormBorderStyle = FormBorderStyle.None; } Host.Child = f; } catch (Exception e) { Console.WriteLine(e); throw; }}
Remark: Drag&Drop for single panes is working. If they are in a tab group, they are locked.
Hello Olaf,
Thank you for posting in our forums!
Our Winforms controls are not supported to work in a WindowsFormsHost. For what reason are you not using the xamDockManager we provide with our WPF controls?
After investigating this and doing some research, supporting Winforms controls in WPF WindowsFormsHost has been determined to be a product idea. You can suggest new product ideas for future versions by emailing ideas@infragistics.com.
Submitting your idea will send it directly to our product management team so that it can be imported into our new ideas community once live: http://ideas.infragistics.com.
Remember when submitting your idea to explain the context in which a feature would be used and why it is needed as well as anything that would prevent you from accomplishing this today. You can even add screenshots to build a stronger case. You can also link back to this thread for additional details.
Thank you in advance to submitting your product idea.
Hello Michael,
thank you for your reply. I want to explain the plans concerning the use of WindowsFormsHost in connection with windowsforms windows using the UltraDockManager. The application is a WindowsForms application using a MDI form and a huge amount of forms to load into the MDI form.
Some complex MDI child forms use UltraDockManager inside to let the user arrange the UI.
We plan to move to WPF step by step and we are not able to change all existing forms. We started to replace the MDI parent form by a WPF form. New forms will be WPF, the old forms should stay unchanged and be hosted by WindowsFormsHost.
For now it would interesting for me, if you know that behavior or can reproduce it. Maybe it is solved by later versions of infragistics and we can upgrade or there is an unsupported workaround like I found some days ago in an other UltraDockManager thread concerning the tab controls in UltraDockManager. I tried to find out, if UltraDockManager's tabs have problems, if the form has ToLevel=false, which is important for the WPF host.
Kind regards
Olaf Ketelsen
Hi Michael,
after trying the current infragistics library I want to renew this issue. There seems to be no change in 2017.2.
I provide a simple sample project. It is easy to reproduce that behavior. Maybe it is easy to solve for you?
As you proposed, I send an email to your ideas-box. But I don't know, what happens now. I've got no answer yet.
It is no problem, to buy a current version, but it should have the chance to solve that.
WpfApp.zip
Hi Olaf,
Thank you for explaining your situation.
Using our WinForms controls in a WPF WindowsFormsHost is not a scenario we support, so this may or may not work in newer versions. It is not something we test against so feel free to try it out yourself.
If you still require this functionality after trying a new version, please submit an email as I mentioned in my previous response.