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

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>
[ToolboxItem(true)]
[Description("柱状图控件")]
public class UIBarChart : UIChart
{
private bool NeedDraw;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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