* UIButton:修正代码赋值Text未实时刷新的Bug
This commit is contained in:
parent
ecc4123106
commit
b2fddf3d60
BIN
Bin/SunnyUI.dll
BIN
Bin/SunnyUI.dll
Binary file not shown.
BIN
Bin/SunnyUI.pdb
BIN
Bin/SunnyUI.pdb
Binary file not shown.
Binary file not shown.
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user