Nevron Forum

content in nuidocument flicker when resize

https://www.nevron.com/Forum/Topic4949.aspx

By JSW W. - Wednesday, March 2, 2011

hello

i use nuidocument to host my usercontrol when resize some flicker some not...

one Usercontrol is just a webbrowser host in usercontrol.

i have already put doublebuffer for the control, but did not help.

thanks
By Nevron Support - Tuesday, March 8, 2011

Hello JSW W.,

Could you send us the source of the control that flickers to reproduce the problem, because when we put a Browser in a user control and set this control as a Child of NUIDocument, the control behaves normally when is resized?
Thanks.
By Tomas Vera - Friday, April 8, 2011

Are you using SuspendLayout/ResumeLayout calls during the resizing?
It seems that many of these controls flicker a lot during painting/resizing/moving.
The SuspendLayout/ResumeLayout helps in some cases.