* UIUserControl: 修复Panel内控件颜色设置问题
This commit is contained in:
parent
16494fe74f
commit
3efabfe80d
@ -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")]
|
||||
|
@ -9,7 +9,7 @@ using System.Windows.Forms;
|
||||
|
||||
namespace Sunny.UI
|
||||
{
|
||||
[ToolboxItem(true)]
|
||||
[ToolboxItem(false)]
|
||||
public class UISymbolPanel : Control
|
||||
{
|
||||
public UISymbolPanel()
|
||||
|
@ -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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user