I have a problem with System.Windows.Forms.Integration.ElementHost when I use the ribbon control.
I have a RibbonForm with RibbonControl, DefaultLookAndFeel and ElementHost controls in it. ElementHost is located in the client area of the ribbon with DockStyle = Fill. ElementHost is green on the screenshot (dx_nobug.png in the attached zip file).
I run the application and do different actions (click buttons, resize the window, etc). Suddenly the ElementHost disappears!!!! It appears again only when the control is invalidated (manual Invalidate() call or window resize).
Please, give me an advice how to avoid the bug or fix it as soon as possible. My decision about purchasing the XtraBars depends upon it :)
Steps to Reproduce:
It is not easy to reproduce the bug, so be patient. Run the attached application (Release, not debug) and move the mouse over the header of the form, click different buttons on the ribbon control, resize the window, maximize the window, etc. Green area should disappear (it is ElementHost). If it does not happens, restart the application and try again.
There are two screenshots in the attached zip file - with bug and without bug.
Show all comments