* UIComboBox: 过滤下拉控跟随主题配色

This commit is contained in:
Sunny 2022-04-16 22:03:20 +08:00
parent 6a1619e263
commit 1ab593385b

View File

@ -25,6 +25,7 @@
* 2022-01-16: V3.1.0
* 2022-04-13: V3.1.3 Text自动选中SelectIndex
* 2022-04-15: V3.1.3
* 2022-04-16: V3.1.3
******************************************************************************/
using System;
@ -417,7 +418,7 @@ namespace Sunny.UI
private UIListBox FilterListBox
{
get => dropForm.ListBox;
get => filterForm.ListBox;
}
[DefaultValue(25)]
@ -477,7 +478,6 @@ namespace Sunny.UI
base.SetStyleColor(uiColor);
ListBox.SetStyleColor(uiColor.DropDownStyle);
FilterListBox.SetStyleColor(uiColor.DropDownStyle);
FilterItemForm.SetStyle(uiColor.DropDownStyle);
}
public object DataSource
@ -610,7 +610,7 @@ namespace Sunny.UI
public string GetItemText(object item)
{
return ShowFilter ? FilterListBox.GetItemText(item) : ListBox.GetItemText(item);
return ListBox.GetItemText(item);
}
private void UIComboBox_KeyDown(object sender, KeyEventArgs e)