* UIControl, UIPanel: 设置圆角的范围

This commit is contained in:
Sunny 2022-01-11 18:14:47 +08:00
parent f1e6fd0cb1
commit f2a662cd73
4 changed files with 2 additions and 0 deletions

Binary file not shown.

Binary file not shown.

View File

@ -176,6 +176,7 @@ namespace Sunny.UI
if (radius != value)
{
radius = Math.Max(0, value);
radius = Math.Min(radius, Math.Min(Width, Height));
Invalidate();
}
}

View File

@ -204,6 +204,7 @@ namespace Sunny.UI
if (radius != value)
{
radius = Math.Max(0, value);
radius = Math.Min(radius, Math.Min(Width, Height));
OnRadiusChanged(radius);
Invalidate();
}