* UIPanel: 支持背景图片显示

This commit is contained in:
Sunny 2021-09-03 16:12:00 +08:00
parent 4b8ead5322
commit 25baf2f77e
5 changed files with 2 additions and 1 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -19,6 +19,7 @@
* 2020-01-01: V2.2.0
* 2020-04-25: V2.2.4
* 2021-05-09: V3.0.3
* 2021-09-03: V3.0.6
******************************************************************************/
using System;
@ -313,7 +314,7 @@ namespace Sunny.UI
GraphicsPath path = rect.CreateRoundedRectanglePath(radius, RadiusSides);
//填充背景色
if (ShowFill && fillColor.IsValid())
if (BackgroundImage == null && ShowFill && fillColor.IsValid())
{
OnPaintFill(e.Graphics, path);
}