* 增加控件在工具箱说明文字

This commit is contained in:
Sunny 2025-03-18 22:12:54 +08:00
parent 8fce03fff2
commit 4f75336ed5
40 changed files with 41 additions and 2 deletions

View File

@ -50,6 +50,7 @@ namespace Sunny.UI
/// 柱状图 /// 柱状图
/// </summary> /// </summary>
[ToolboxItem(true)] [ToolboxItem(true)]
[Description("柱状图控件")]
public class UIBarChart : UIChart public class UIBarChart : UIChart
{ {
private bool NeedDraw; private bool NeedDraw;

View File

@ -32,7 +32,7 @@ using System.Windows.Forms;
namespace Sunny.UI namespace Sunny.UI
{ {
[ToolboxItem(true), Description("甜甜圈图")] [ToolboxItem(true), Description("甜甜圈图控件")]
public sealed class UIDoughnutChart : UIChart public sealed class UIDoughnutChart : UIChart
{ {
/// <summary> /// <summary>

View File

@ -69,6 +69,7 @@ using System.Windows.Forms;
namespace Sunny.UI namespace Sunny.UI
{ {
[ToolboxItem(true)] [ToolboxItem(true)]
[Description("曲线图控件")]
public class UILineChart : UIChart public class UILineChart : UIChart
{ {
protected bool NeedDraw; protected bool NeedDraw;

View File

@ -32,6 +32,7 @@ using System.Windows.Forms;
namespace Sunny.UI namespace Sunny.UI
{ {
[ToolboxItem(true)] [ToolboxItem(true)]
[Description("饼状图控件")]
public sealed class UIPieChart : UIChart public sealed class UIPieChart : UIChart
{ {
/// <summary> /// <summary>

View File

@ -32,6 +32,7 @@ namespace Sunny.UI
[DefaultEvent("ValueChanged")] [DefaultEvent("ValueChanged")]
[DefaultProperty("Value")] [DefaultProperty("Value")]
[ToolboxItem(true)] [ToolboxItem(true)]
[Description("水平滚动条控件")]
public sealed class UIHorScrollBar : UIControl public sealed class UIHorScrollBar : UIControl
{ {
public UIHorScrollBar() public UIHorScrollBar()

View File

@ -30,6 +30,7 @@ using System.Windows.Forms;
namespace Sunny.UI namespace Sunny.UI
{ {
[ToolboxItem(true)] [ToolboxItem(true)]
[Description("水平滚动条控件")]
public class UIHorScrollBarEx : UIControl public class UIHorScrollBarEx : UIControl
{ {
public UIHorScrollBarEx() public UIHorScrollBarEx()

View File

@ -31,6 +31,7 @@ using System.Windows.Forms;
namespace Sunny.UI namespace Sunny.UI
{ {
[ToolboxItem(true)] [ToolboxItem(true)]
[Description("进度指示器控件")]
public sealed class UIProgressIndicator : UIControl public sealed class UIProgressIndicator : UIControl
{ {
private readonly Timer timer; private readonly Timer timer;

View File

@ -41,6 +41,7 @@ namespace Sunny.UI
[DefaultEvent("CheckedChanged")] [DefaultEvent("CheckedChanged")]
[DefaultProperty("Checked")] [DefaultProperty("Checked")]
[ToolboxItem(true)] [ToolboxItem(true)]
[Description("单选框控件")]
public sealed class UIRadioButton : UIControl public sealed class UIRadioButton : UIControl
{ {
public delegate void OnValueChanged(object sender, bool value); public delegate void OnValueChanged(object sender, bool value);

View File

@ -40,6 +40,7 @@ namespace Sunny.UI
{ {
[DefaultProperty("Items")] [DefaultProperty("Items")]
[DefaultEvent("ValueChanged")] [DefaultEvent("ValueChanged")]
[Description("单选框组控件")]
public class UIRadioButtonGroup : UIGroupBox public class UIRadioButtonGroup : UIGroupBox
{ {
public delegate void OnValueChanged(object sender, int index, string text); public delegate void OnValueChanged(object sender, int index, string text);

View File

@ -38,6 +38,7 @@ namespace Sunny.UI
{ {
[DefaultEvent("TextChanged")] [DefaultEvent("TextChanged")]
[DefaultProperty("Text")] [DefaultProperty("Text")]
[Description("富文本输入框控件")]
public sealed class UIRichTextBox : UIPanel, IToolTip public sealed class UIRichTextBox : UIPanel, IToolTip
{ {
private UIScrollBar bar; private UIScrollBar bar;

View File

@ -19,10 +19,10 @@
* 2020-01-01: V2.2.0 * 2020-01-01: V2.2.0
******************************************************************************/ ******************************************************************************/
using Sunny.UI.Properties;
using System.ComponentModel; using System.ComponentModel;
using System.Drawing; using System.Drawing;
using System.Windows.Forms; using System.Windows.Forms;
using Sunny.UI.Properties;
namespace Sunny.UI namespace Sunny.UI
{ {
@ -31,6 +31,7 @@ namespace Sunny.UI
/// </summary> /// </summary>
[ToolboxItem(true)] [ToolboxItem(true)]
[DefaultProperty("Angle")] [DefaultProperty("Angle")]
[Description("圆形图表控件")]
public sealed class UIRoundMeter : UIControl public sealed class UIRoundMeter : UIControl
{ {
/// <summary> /// <summary>

View File

@ -37,6 +37,7 @@ namespace Sunny.UI
[ToolboxItem(true)] [ToolboxItem(true)]
[DefaultEvent("ValueChanged")] [DefaultEvent("ValueChanged")]
[DefaultProperty("Value")] [DefaultProperty("Value")]
[Description("圆形进度条控件")]
public class UIRoundProcess : UIControl public class UIRoundProcess : UIControl
{ {
public UIRoundProcess() public UIRoundProcess()

View File

@ -27,6 +27,7 @@ using System.Windows.Forms;
namespace Sunny.UI namespace Sunny.UI
{ {
[ToolboxItem(true)] [ToolboxItem(true)]
[Description("刻度尺控件")]
public class UIRuler : UIControl public class UIRuler : UIControl
{ {
private UITrackBar.BarDirection direction = UITrackBar.BarDirection.Horizontal; private UITrackBar.BarDirection direction = UITrackBar.BarDirection.Horizontal;

View File

@ -33,6 +33,7 @@ namespace Sunny.UI
[DefaultEvent("ValueChanged")] [DefaultEvent("ValueChanged")]
[DefaultProperty("Value")] [DefaultProperty("Value")]
[ToolboxItem(true)] [ToolboxItem(true)]
[Description("滚动条控件")]
public sealed class UIScrollBar : UIControl public sealed class UIScrollBar : UIControl
{ {
public UIScrollBar() public UIScrollBar()

View File

@ -33,6 +33,7 @@ using System.Windows.Forms;
namespace Sunny.UI namespace Sunny.UI
{ {
[ToolboxItem(true)] [ToolboxItem(true)]
[Description("滚动文字控件")]
public class UIScrollingText : UIControl public class UIScrollingText : UIControl
{ {
private readonly Timer timer; private readonly Timer timer;

View File

@ -31,6 +31,7 @@ namespace Sunny.UI
[DefaultEvent("Click")] [DefaultEvent("Click")]
[DefaultProperty("Level")] [DefaultProperty("Level")]
[ToolboxItem(true)] [ToolboxItem(true)]
[Description("信号强度显示控件")]
public class UISignal : UIControl public class UISignal : UIControl
{ {
public UISignal() public UISignal()

View File

@ -33,6 +33,7 @@ namespace Sunny.UI
[ToolboxItem(true)] [ToolboxItem(true)]
[DefaultEvent("Click")] [DefaultEvent("Click")]
[DefaultProperty("Text")] [DefaultProperty("Text")]
[Description("平滑文字带边框的标签控件")]
public sealed class UISmoothLabel : Label, IStyleInterface, IZoomScale, IFormTranslator public sealed class UISmoothLabel : Label, IStyleInterface, IZoomScale, IFormTranslator
{ {
private PointF point; private PointF point;

View File

@ -30,6 +30,7 @@ using System.Windows.Forms;
namespace Sunny.UI namespace Sunny.UI
{ {
[Description("分割容器控件")]
public sealed class UISplitContainer : SplitContainer, IStyleInterface, IZoomScale public sealed class UISplitContainer : SplitContainer, IStyleInterface, IZoomScale
{ {
private enum UIMouseType private enum UIMouseType

View File

@ -25,6 +25,7 @@ using System.Windows.Forms;
namespace Sunny.UI namespace Sunny.UI
{ {
[Description("根据状态显示图片控件")]
public class UIStatusBox : PictureBox public class UIStatusBox : PictureBox
{ {
/// <summary> /// <summary>

View File

@ -37,6 +37,7 @@ namespace Sunny.UI
[DefaultEvent("ValueChanged")] [DefaultEvent("ValueChanged")]
[DefaultProperty("Active")] [DefaultProperty("Active")]
[ToolboxItem(true)] [ToolboxItem(true)]
[Description("开关控件")]
public sealed class UISwitch : UIControl public sealed class UISwitch : UIControl
{ {
/// <summary> /// <summary>

View File

@ -36,6 +36,7 @@ namespace Sunny.UI
{ {
[DefaultEvent("Click")] [DefaultEvent("Click")]
[DefaultProperty("Text")] [DefaultProperty("Text")]
[Description("字体图标按钮控件")]
public class UISymbolButton : UIButton, ISymbol public class UISymbolButton : UIButton, ISymbol
{ {
private int _symbolSize = 24; private int _symbolSize = 24;

View File

@ -36,6 +36,7 @@ namespace Sunny.UI
[ToolboxItem(true)] [ToolboxItem(true)]
[DefaultEvent("Click")] [DefaultEvent("Click")]
[DefaultProperty("Text")] [DefaultProperty("Text")]
[Description("带字体图标的标签控件")]
public sealed class UISymbolLabel : UIControl, ISymbol public sealed class UISymbolLabel : UIControl, ISymbol
{ {
private int _symbolSize = 24; private int _symbolSize = 24;

View File

@ -51,6 +51,7 @@ using Sunny.UI.Win32;
namespace Sunny.UI namespace Sunny.UI
{ {
[Description("标签控件")]
public sealed class UITabControl : TabControl, IStyleInterface, IZoomScale public sealed class UITabControl : TabControl, IStyleInterface, IZoomScale
{ {
private readonly UITabControlHelper Helper; private readonly UITabControlHelper Helper;

View File

@ -30,6 +30,7 @@ using System.Windows.Forms;
namespace Sunny.UI namespace Sunny.UI
{ {
[Description("标签菜单控件")]
public sealed class UITabControlMenu : TabControl, IStyleInterface, IZoomScale public sealed class UITabControlMenu : TabControl, IStyleInterface, IZoomScale
{ {
public UITabControlMenu() public UITabControlMenu()

View File

@ -26,6 +26,7 @@ using System.Windows.Forms;
namespace Sunny.UI namespace Sunny.UI
{ {
[Description("动态布局面板控件")]
public sealed class UITableLayoutPanel : TableLayoutPanel, IStyleInterface public sealed class UITableLayoutPanel : TableLayoutPanel, IStyleInterface
{ {
public UITableLayoutPanel() public UITableLayoutPanel()

View File

@ -76,6 +76,7 @@ namespace Sunny.UI
{ {
[DefaultEvent("TextChanged")] [DefaultEvent("TextChanged")]
[DefaultProperty("Text")] [DefaultProperty("Text")]
[Description("输入框控件")]
public partial class UITextBox : UIPanel, ISymbol, IToolTip public partial class UITextBox : UIPanel, ISymbol, IToolTip
{ {
private readonly UIEdit edit = new UIEdit(); private readonly UIEdit edit = new UIEdit();

View File

@ -29,6 +29,7 @@ namespace Sunny.UI
[DefaultEvent("ValueChanged")] [DefaultEvent("ValueChanged")]
[DefaultProperty("Value")] [DefaultProperty("Value")]
[ToolboxItem(true)] [ToolboxItem(true)]
[Description("温度计控件")]
public class UIThermometer : UIControl public class UIThermometer : UIControl
{ {
public event EventHandler ValueChanged; public event EventHandler ValueChanged;

View File

@ -33,6 +33,7 @@ namespace Sunny.UI
[ToolboxItem(true)] [ToolboxItem(true)]
[DefaultProperty("Value")] [DefaultProperty("Value")]
[DefaultEvent("ValueChanged")] [DefaultEvent("ValueChanged")]
[Description("时间选择框控件")]
public sealed class UITimePicker : UIDropControl, IToolTip public sealed class UITimePicker : UIDropControl, IToolTip
{ {
private void InitializeComponent() private void InitializeComponent()

View File

@ -39,6 +39,7 @@ using System.Windows.Forms;
namespace Sunny.UI namespace Sunny.UI
{ {
[DefaultEvent("Click"), DefaultProperty("Text")] [DefaultEvent("Click"), DefaultProperty("Text")]
[Description("带标题面板控件")]
public partial class UITitlePanel : UIPanel public partial class UITitlePanel : UIPanel
{ {
private int _titleHeight = 35; private int _titleHeight = 35;

View File

@ -35,6 +35,7 @@ namespace Sunny.UI
[ProvideProperty("ToolTip", typeof(Control))] [ProvideProperty("ToolTip", typeof(Control))]
[DefaultEvent("Popup")] [DefaultEvent("Popup")]
[ToolboxItemFilter("System.Windows.Forms")] [ToolboxItemFilter("System.Windows.Forms")]
[Description("提示控件")]
public class UIToolTip : ToolTip public class UIToolTip : ToolTip
{ {
private readonly ConcurrentDictionary<Control, ToolTipControl> ToolTipControls = private readonly ConcurrentDictionary<Control, ToolTipControl> ToolTipControls =

View File

@ -33,6 +33,7 @@ namespace Sunny.UI
[DefaultEvent("ValueChanged")] [DefaultEvent("ValueChanged")]
[DefaultProperty("Value")] [DefaultProperty("Value")]
[ToolboxItem(true)] [ToolboxItem(true)]
[Description("进度指示条控件")]
public sealed class UITrackBar : UIControl public sealed class UITrackBar : UIControl
{ {
public event EventHandler ValueChanged; public event EventHandler ValueChanged;

View File

@ -36,6 +36,7 @@ namespace Sunny.UI
/// 穿梭框 /// 穿梭框
/// </summary> /// </summary>
[DefaultProperty("ItemsLeft")] [DefaultProperty("ItemsLeft")]
[Description("穿梭框控件")]
public sealed partial class UITransfer : UIPanel public sealed partial class UITransfer : UIPanel
{ {
/// <summary> /// <summary>

View File

@ -56,6 +56,7 @@ namespace Sunny.UI
{ {
[DefaultEvent("AfterSelect")] [DefaultEvent("AfterSelect")]
[DefaultProperty("Nodes")] [DefaultProperty("Nodes")]
[Description("树形列表控件")]
public sealed class UITreeView : UIPanel, IToolTip public sealed class UITreeView : UIPanel, IToolTip
{ {
private UIScrollBar Bar; private UIScrollBar Bar;

View File

@ -31,6 +31,7 @@ namespace Sunny.UI
[DefaultEvent("ValueChanged")] [DefaultEvent("ValueChanged")]
[DefaultProperty("Active")] [DefaultProperty("Active")]
[ToolboxItem(true)] [ToolboxItem(true)]
[Description("旋转开关控件")]
public class UITurnSwitch : UIControl public class UITurnSwitch : UIControl
{ {
/// <summary> /// <summary>

View File

@ -35,6 +35,7 @@ namespace Sunny.UI
{ {
[Designer("System.Windows.Forms.Design.ParentControlDesigner, System.Design", typeof(System.ComponentModel.Design.IDesigner))] [Designer("System.Windows.Forms.Design.ParentControlDesigner, System.Design", typeof(System.ComponentModel.Design.IDesigner))]
[DefaultEvent("Click"), DefaultProperty("Text")] [DefaultEvent("Click"), DefaultProperty("Text")]
[Description("用户控件")]
public partial class UIUserControl : UserControl, IStyleInterface, IZoomScale, IFormTranslator public partial class UIUserControl : UserControl, IStyleInterface, IZoomScale, IFormTranslator
{ {
private int radius = 5; private int radius = 5;

View File

@ -31,6 +31,7 @@ namespace Sunny.UI
[ToolboxItem(true)] [ToolboxItem(true)]
[DefaultProperty("Active")] [DefaultProperty("Active")]
[DefaultEvent("ActiveChanged")] [DefaultEvent("ActiveChanged")]
[Description("阀门控件")]
public sealed class UIValve : Control, IZoomScale public sealed class UIValve : Control, IZoomScale
{ {
public UIValve() public UIValve()

View File

@ -30,6 +30,7 @@ using System.Windows.Forms;
namespace Sunny.UI namespace Sunny.UI
{ {
[ToolboxItem(true)] [ToolboxItem(true)]
[Description("垂直滚动条控件")]
public class UIVerScrollBarEx : UIControl public class UIVerScrollBarEx : UIControl
{ {
public UIVerScrollBarEx() public UIVerScrollBarEx()

View File

@ -33,6 +33,7 @@ namespace Sunny.UI
[DefaultEvent("Click")] [DefaultEvent("Click")]
[DefaultProperty("Text")] [DefaultProperty("Text")]
[ToolboxItem(true)] [ToolboxItem(true)]
[Description("验证码控件")]
public class UIVerificationCode : UIControl public class UIVerificationCode : UIControl
{ {
public UIVerificationCode() public UIVerificationCode()

View File

@ -29,6 +29,7 @@ using System.Windows.Forms;
namespace Sunny.UI namespace Sunny.UI
{ {
[ToolboxItem(true)] [ToolboxItem(true)]
[Description("等待滚动条控件")]
public sealed class UIWaitingBar : UIControl public sealed class UIWaitingBar : UIControl
{ {
private readonly Timer timer; private readonly Timer timer;

View File

@ -29,6 +29,7 @@ namespace Sunny.UI
/// <summary> /// <summary>
/// 主题样式管理类 /// 主题样式管理类
/// </summary> /// </summary>
[Description("主题样式管理控件")]
public class UIStyleManager : Component public class UIStyleManager : Component
{ {
/// <summary> /// <summary>