ElementHost flickers black borders on resize RRS feed

  • Question

  •  I googled about the issue. Also read thisthis and this SO questions. I tried some of those things but nothing seemed to help.

    Consider the following simple example code. It's just an empty ElementHost inside a WinForm (no WPF control inside):

    using System.Windows.Forms;
    using System.Windows.Forms.Integration;
    namespace WindowsFormsApplication15
        public partial class Form1 : Form
            public Form1()
                ElementHost host = new ElementHost();
                host.Dock = DockStyle.Fill;

    When you resize the form, you can see two black edges at the form border: 

    Please, ¿someone could give a working solution over my example to fix this issue?

    Thursday, March 26, 2015 2:46 PM


All replies