* UIComboBox: 增加了下拉框颜色设置

This commit is contained in:
Sunny 2022-01-16 23:11:35 +08:00
parent 3d9c29dd04
commit aceeff540b
2 changed files with 29 additions and 0 deletions

Binary file not shown.

View File

@ -22,6 +22,7 @@
* 2021-06-03: V3.0.4
* 2021-08-03: V3.0.5 Items.Clear后清除显示
* 2021-08-15: V3.0.6
* 2022-01-16: V3.1.0
******************************************************************************/
using System;
@ -334,5 +335,33 @@ namespace Sunny.UI
ShowDropDown();
}
}
[DefaultValue(typeof(Color), "White")]
public Color ItemFillColor
{
get => ListBox.FillColor;
set => ListBox.FillColor = value;
}
[DefaultValue(typeof(Color), "48, 48, 48")]
public Color ItemForeColor
{
get => ListBox.ForeColor;
set => ListBox.ForeColor = value;
}
[DefaultValue(typeof(Color), "235, 243, 255")]
public Color ItemSelectForeColor
{
get => ListBox.ItemSelectForeColor;
set => ListBox.ItemSelectForeColor = value;
}
[DefaultValue(typeof(Color), "80, 160, 255")]
public Color ItemSelectBackColor
{
get => ListBox.ItemSelectBackColor;
set => ListBox.ItemSelectBackColor = value;
}
}
}