* UIListBox: 修复在选中某一项后,清除选中项需要两次操作

This commit is contained in:
Sunny 2022-03-08 20:12:44 +08:00
parent b3bc0cdc65
commit 53683cf884
2 changed files with 3 additions and 1 deletions

Binary file not shown.

View File

@ -25,7 +25,8 @@
* 2021-07-30: V3.0.5 * 2021-07-30: V3.0.5
* 2021-08-04: V3.0.5 Items变更的事件 * 2021-08-04: V3.0.5 Items变更的事件
* 2021-12-29: V3.0.9 * 2021-12-29: V3.0.9
* 2022-02-23: V3.1.1 * 2022-02-23: V3.1.1
* 2022-03-08: V3.1.1
******************************************************************************/ ******************************************************************************/
using System; using System;
@ -164,6 +165,7 @@ namespace Sunny.UI
public void ClearSelected() public void ClearSelected()
{ {
listbox.SelectedIndex = -1;
listbox.ClearSelected(); listbox.ClearSelected();
} }