Flickering when using ElementHost RRS feed

  • Question

  • Hi,

      I am using ElementHost to hosta windows control inside a WPF Control. While loading this control i observed flickering. Any idea to resolve this.
    Monday, June 1, 2009 9:38 AM


  • Hi!

    I think the flicker originates from the different layout/painting mechanism of WinForms and WPF - probably, you can't solve this. :/
    Altough, I'd try to set the Forms DoubleBuffered property to true, to see whether it helps.
    Plan B: place the WPF element in a WPF window, and try to draw this window on the Form with some interop code. (So avoid using ElementHost.)

    Hope I could help!

    • Marked as answer by Hua Chen Friday, June 5, 2009 6:33 AM
    Tuesday, June 2, 2009 9:05 AM