Im using a WinForm
and an ElementsHost
object to host a WPF control.
public partial class ImportForm : DockContent
{
private ElementHost ctrlHost;
public ImportForm
{
InitializeComponent();
ctrlHost = new ElementHost();
ctrlHost.Dock = DockStyle.Fill;
ImportDockContent dockContent = new ImportDockContent();
ctrlHost.Child = dockContent;
this.Controls.Add(ctrlHost);
}
}
Unfortunately this form will flicker when i resize it. I tryed something with suspendlayout and resume layout in the resize event of the form, but that didnt help. Does anybody know what to do to stop this?
thanks for your help.