private static void OnDrawingEndScene(EventArgs args) { if (Hidden) { return; } if (Minimized) { Parts.Minimize.EndScene(); } else { Header.EndScene(); Content.EndScene(); Scrollbar.EndScene(); Parts.Minimize.EndScene(); } }