* UICheckBoxGroup: 修复未显示时切换节点文本为空的问题

* UIRadioButtonGroup: 修复未显示时切换节点文本为空的问题
This commit is contained in:
Sunny 2022-11-21 14:08:16 +08:00
parent 8c7737db4c
commit 50ef093719
2 changed files with 6 additions and 2 deletions

View File

@ -21,6 +21,7 @@
* 2020-07-03: V2.2.6 ItemSize无效的Bug
* 2020-07-04: V2.2.6
* 2022-06-30: V3.2.0
* 2022-11-21: V3.2.9
******************************************************************************/
using System;
@ -134,6 +135,7 @@ namespace Sunny.UI
box.Style = Style;
box.IsScaled = IsScaled;
box.ValueChanged += Box_ValueChanged;
box.Text = Items[i]?.ToString();
boxes.Add(box);
}
}

View File

@ -11,7 +11,7 @@
* If you use this code, please keep this note.
* 使
******************************************************************************
* : UICheckBoxGroup.cs
* : UIRadioButtonGroup.cs
* :
* : V3.1
* : 2020-01-01
@ -20,6 +20,7 @@
* 2020-04-25: V2.2.4
* 2020-07-03: V2.2.6 ItemSize无效的Bug
* 2020-07-04: V2.2.6
* 2022-11-21: V3.2.9
******************************************************************************/
using System;
@ -98,7 +99,8 @@ namespace Sunny.UI
Parent = this,
Tag = i,
Style = Style,
IsScaled = IsScaled
IsScaled = IsScaled,
Text = Items[i]?.ToString()
};
button.ValueChanged += Button_ValueChanged;