Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
135
Best way to cope with having Windows Forms controls in ContentPanes?
posted

I understand that there are layout considerations for using a Windows Forms host in a WPF control like XamDockManager, but I'm wondering what can be done to cope with them.

For example, if I have a Windows Forms WebBrowser control in a ContentPane "W" and a System.Windows.Controls.Button in ContentPane "B". If I try to dock "B" on "W", I don't see the dock indicators since the Windows Forms control on "W" is top most.

Is the best thing I can do is to detect when a drag is occuring and then take a snapshot of the Windows Forms control and then temporarily switch it to a WPF based bitmap so that the docking indicators can go on top?

Any further guidance?

Thanks!