* UIButton:修正代码赋值Text未实时刷新的Bug

This commit is contained in:
Sunny 2020-06-03 23:43:44 +08:00
parent ecc4123106
commit b2fddf3d60
4 changed files with 6 additions and 0 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@ -479,6 +479,12 @@ namespace Sunny.UI
g.DrawString(Text, Font, color, Size, Padding, TextAlign);
}
protected override void OnTextChanged(EventArgs e)
{
base.OnTextChanged(e);
Invalidate();
}
/// <summary>
/// 选中颜色
/// </summary>