When two anchrobles are made visible true or false we can see they appear one after another. Additionally this causes a flickering in the document area (I am having a heavy OpenGL viewer inside the document viewer. So it can be clearly visible.)
I found the cause and it is inside LayoutGridControl.OnInitialized. It is calling begin invoke with dispatcher priority as Background. This causes a draw operation in between two layout operations. If I set the priority to Normal the flickering is gone. However I think the fix should be to collect all update layout operations and execute them at once.
Comments: ** Comment from web user: mach22 **
I found the cause and it is inside LayoutGridControl.OnInitialized. It is calling begin invoke with dispatcher priority as Background. This causes a draw operation in between two layout operations. If I set the priority to Normal the flickering is gone. However I think the fix should be to collect all update layout operations and execute them at once.
Comments: ** Comment from web user: mach22 **
I have the same problem when I create a new document with an OpenGL drawing control inside it.