* UIUserControl: 修复Panel内控件颜色设置问题

This commit is contained in:
Sunny 2023-11-28 13:41:08 +08:00
parent 16494fe74f
commit 3efabfe80d
3 changed files with 3 additions and 14 deletions

View File

@ -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")]

View File

@ -9,7 +9,7 @@ using System.Windows.Forms;
namespace Sunny.UI
{
[ToolboxItem(true)]
[ToolboxItem(false)]
public class UISymbolPanel : Control
{
public UISymbolPanel()

View File

@ -9,7 +9,7 @@
<Description>SunnyUI.Net 是基于.Net Framework 4.0~4.8、.Net6、.Net7 框架的 C# WinForm 开源控件库、工具类库、扩展类库、多页面开发框架。</Description>
<Copyright>CopyRight © SunnyUI.Net 2012-2023</Copyright>
<PackageLicenseExpression>GPL-3.0-only</PackageLicenseExpression>
<Version>3.6.0.0</Version>
<Version>3.6.1.0</Version>
<Authors>ShenYonghua</Authors>
<Company>SunnyUI.Net</Company>
<PackageId>SunnyUI</PackageId>