diff --git a/SunnyUI/Controls/UIColorPicker.cs b/SunnyUI/Controls/UIColorPicker.cs index 2bc53b27..19db1e8d 100644 --- a/SunnyUI/Controls/UIColorPicker.cs +++ b/SunnyUI/Controls/UIColorPicker.cs @@ -19,6 +19,7 @@ * 2020-05-31: V2.2.5 增加文件 * 2021-03-13: V3.0.2 增加单击事件以选中颜色 * 2022-03-10: V3.1.1 修复选中颜色不显示 + * 2024-08-05: V3.6.8 增加ShowDropDown()函数 ****************************************************************************** * 文件名称: UIColorPicker.cs * 文件说明: Color picker with color wheel and eye dropper @@ -97,6 +98,11 @@ namespace Sunny.UI CreateInstance(); } + public void ShowDropDown() + { + UIColorPicker_ButtonClick(this, EventArgs.Empty); + } + private void UIColorPicker_ButtonClick(object sender, EventArgs e) { item.SelectedColor = Value;