diff --git a/SunnyUI/Controls/UIUserControl.cs b/SunnyUI/Controls/UIUserControl.cs
index ece0b1d9..b974eb8d 100644
--- a/SunnyUI/Controls/UIUserControl.cs
+++ b/SunnyUI/Controls/UIUserControl.cs
@@ -21,6 +21,7 @@
* 2023-05-12: V3.3.6 重构DrawString函数
* 2023-07-02: V3.3.9 渐变色增加方向选择
* 2023-11-05: V3.5.2 重构主题
+ * 2023-11-28: V3.6.0 修复Panel内控件颜色设置问题
******************************************************************************/
using System;
@@ -190,18 +191,6 @@ namespace Sunny.UI
{
}
- protected override void OnControlAdded(ControlEventArgs e)
- {
- base.OnControlAdded(e);
-
- if (e.Control is IStyleInterface ctrl)
- {
- if (!ctrl.StyleCustomMode) ctrl.Style = Style;
- }
-
- UIStyleHelper.SetRawControlStyle(e, Style);
- }
-
private UICornerRadiusSides _radiusSides = UICornerRadiusSides.All;
[DefaultValue(UICornerRadiusSides.All), Description("圆角显示位置"), Category("SunnyUI")]
diff --git a/SunnyUI/Font/UISymbolPanel.cs b/SunnyUI/Font/UISymbolPanel.cs
index 13b3dce8..1112162a 100644
--- a/SunnyUI/Font/UISymbolPanel.cs
+++ b/SunnyUI/Font/UISymbolPanel.cs
@@ -9,7 +9,7 @@ using System.Windows.Forms;
namespace Sunny.UI
{
- [ToolboxItem(true)]
+ [ToolboxItem(false)]
public class UISymbolPanel : Control
{
public UISymbolPanel()
diff --git a/SunnyUI/SunnyUI.csproj b/SunnyUI/SunnyUI.csproj
index 0d43d43d..94570d35 100644
--- a/SunnyUI/SunnyUI.csproj
+++ b/SunnyUI/SunnyUI.csproj
@@ -9,7 +9,7 @@
SunnyUI.Net 是基于.Net Framework 4.0~4.8、.Net6、.Net7 框架的 C# WinForm 开源控件库、工具类库、扩展类库、多页面开发框架。
CopyRight © SunnyUI.Net 2012-2023
GPL-3.0-only
- 3.6.0.0
+ 3.6.1.0
ShenYonghua
SunnyUI.Net
SunnyUI