Method LayoutAndDraw
LayoutAndDraw(bool)
Causes any Toplevels that need layout to be laid out, then draws any Toplevels that need display. Only Views that need to be laid out (see NeedsLayout) will be laid out. Only Views that need to be drawn (see NeedsDraw) will be drawn.
public void LayoutAndDraw(bool forceRedraw = false)
Parameters
forceRedrawboolIf true the entire View hierarchy will be redrawn. The default is false and should only be overridden for testing.
Remarks
This method is called automatically each main loop iteration when any views need layout or drawing.
If ClearScreenNextIteration is true, the screen will be cleared before drawing and the flag will be reset to false.