diff --git a/Bin/net40/SunnyUI.Demo.exe b/Bin/net40/SunnyUI.Demo.exe index d041c2cc..98d0352a 100644 Binary files a/Bin/net40/SunnyUI.Demo.exe and b/Bin/net40/SunnyUI.Demo.exe differ diff --git a/Bin/net40/SunnyUI.dll b/Bin/net40/SunnyUI.dll index 4c2e24cf..6d2d7d8a 100644 Binary files a/Bin/net40/SunnyUI.dll and b/Bin/net40/SunnyUI.dll differ diff --git a/Bin/net5.0-windows/SunnyUI.dll b/Bin/net5.0-windows/SunnyUI.dll index aa56024e..d8f93dde 100644 Binary files a/Bin/net5.0-windows/SunnyUI.dll and b/Bin/net5.0-windows/SunnyUI.dll differ diff --git a/Bin/net5.0-windows/ref/SunnyUI.dll b/Bin/net5.0-windows/ref/SunnyUI.dll index b9667e77..0152c00e 100644 Binary files a/Bin/net5.0-windows/ref/SunnyUI.dll and b/Bin/net5.0-windows/ref/SunnyUI.dll differ diff --git a/Bin/netcoreapp3.1/SunnyUI.dll b/Bin/netcoreapp3.1/SunnyUI.dll index cad3b8ca..a0237027 100644 Binary files a/Bin/netcoreapp3.1/SunnyUI.dll and b/Bin/netcoreapp3.1/SunnyUI.dll differ diff --git a/SunnyUI/Controls/DropItem/UIDropControl.cs b/SunnyUI/Controls/DropItem/UIDropControl.cs index f738224b..3ab01518 100644 --- a/SunnyUI/Controls/DropItem/UIDropControl.cs +++ b/SunnyUI/Controls/DropItem/UIDropControl.cs @@ -322,6 +322,7 @@ namespace Sunny.UI } [DefaultValue(false)] + [Description("是否只读"), Category("SunnyUI")] public bool ReadOnly { get => edit.ReadOnly; diff --git a/SunnyUI/Controls/UICheckBox.cs b/SunnyUI/Controls/UICheckBox.cs index 4fd71b66..32976103 100644 --- a/SunnyUI/Controls/UICheckBox.cs +++ b/SunnyUI/Controls/UICheckBox.cs @@ -30,7 +30,7 @@ using System.Windows.Forms; namespace Sunny.UI { [DefaultEvent("ValueChanged")] - [DefaultProperty("Text")] + [DefaultProperty("Checked")] [ToolboxItem(true)] public class UICheckBox : UIControl { @@ -93,6 +93,7 @@ namespace Sunny.UI } [DefaultValue(false)] + [Description("是否只读"), Category("SunnyUI")] public bool ReadOnly { get; set; } /// diff --git a/SunnyUI/Controls/UIGroupBox.cs b/SunnyUI/Controls/UIGroupBox.cs index da943d86..62cdd3c0 100644 --- a/SunnyUI/Controls/UIGroupBox.cs +++ b/SunnyUI/Controls/UIGroupBox.cs @@ -27,6 +27,7 @@ using System.Windows.Forms; namespace Sunny.UI { + [DefaultProperty("Text")] public partial class UIGroupBox : UIPanel { public UIGroupBox() diff --git a/SunnyUI/Controls/UIRadioButton.cs b/SunnyUI/Controls/UIRadioButton.cs index 2de50ab3..058c6a8d 100644 --- a/SunnyUI/Controls/UIRadioButton.cs +++ b/SunnyUI/Controls/UIRadioButton.cs @@ -31,7 +31,7 @@ using System.Windows.Forms; namespace Sunny.UI { [DefaultEvent("ValueChanged")] - [DefaultProperty("Text")] + [DefaultProperty("Checked")] [ToolboxItem(true)] public sealed class UIRadioButton : UIControl { @@ -226,6 +226,7 @@ namespace Sunny.UI } [DefaultValue(0)] + [Description("分组编号"), Category("SunnyUI")] public int GroupIndex { get; set; } /// diff --git a/SunnyUI/Controls/UITitlePanel.cs b/SunnyUI/Controls/UITitlePanel.cs index a7631d3f..b64e1441 100644 --- a/SunnyUI/Controls/UITitlePanel.cs +++ b/SunnyUI/Controls/UITitlePanel.cs @@ -29,6 +29,7 @@ using System.Windows.Forms; namespace Sunny.UI { + [DefaultEvent("Click"), DefaultProperty("Text")] public partial class UITitlePanel : UIPanel { private int _titleHeight = 35;