Hi I am experiencing a similiar problem to this Question.
Whats different for me is that I am using in my WinForms-MainForm the "CreateParams-Method" to force doublebuffering. Code for this is (following e.g. DataGridView draws wrong):
protected override CreateParams CreateParams
{
get
{
// Activate double buffering at the form level. All child controls will be double buffered as well.
CreateParams cp = base.CreateParams;
cp.ExStyle |= 0x02000000; // WS_EX_COMPOSITED
return cp;
}
}
My problem is now, as long as this CreateParams is activated, the content of my WPF-ElementHost in a WinForms-Usercontrol are only drawn when there is a mouseover event.
Short description: The UserControl "opens" but it's transparent. After I move over it with my mouse, e.g. the ComboBoxes get drawn.
As soon as I comment out the CreateParams everything works just fine (with the WPF-ElementHost). Is it possible to just deactivate / use different CreateParams for the WPFElementHost?