* UIPanel:增加双缓冲,减少闪烁

This commit is contained in:
Sunny 2021-05-09 21:58:24 +08:00
parent bba42050c8
commit b504d895bb
4 changed files with 1 additions and 0 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -48,6 +48,7 @@ namespace Sunny.UI
AutoScaleMode = AutoScaleMode.None; AutoScaleMode = AutoScaleMode.None;
base.Font = UIFontColor.Font; base.Font = UIFontColor.Font;
base.MinimumSize = new System.Drawing.Size(1, 1); base.MinimumSize = new System.Drawing.Size(1, 1);
SetStyleFlags(true, false);
} }
protected void SetStyleFlags(bool supportTransparent = true, bool selectable = true, bool resizeRedraw = false) protected void SetStyleFlags(bool supportTransparent = true, bool selectable = true, bool resizeRedraw = false)