* 增加控件在工具箱说明文字
This commit is contained in:
parent
8fce03fff2
commit
4f75336ed5
@ -50,6 +50,7 @@ namespace Sunny.UI
|
||||
/// 柱状图
|
||||
/// </summary>
|
||||
[ToolboxItem(true)]
|
||||
[Description("柱状图控件")]
|
||||
public class UIBarChart : UIChart
|
||||
{
|
||||
private bool NeedDraw;
|
||||
|
@ -32,7 +32,7 @@ using System.Windows.Forms;
|
||||
|
||||
namespace Sunny.UI
|
||||
{
|
||||
[ToolboxItem(true), Description("甜甜圈图")]
|
||||
[ToolboxItem(true), Description("甜甜圈图控件")]
|
||||
public sealed class UIDoughnutChart : UIChart
|
||||
{
|
||||
/// <summary>
|
||||
|
@ -69,6 +69,7 @@ using System.Windows.Forms;
|
||||
namespace Sunny.UI
|
||||
{
|
||||
[ToolboxItem(true)]
|
||||
[Description("曲线图控件")]
|
||||
public class UILineChart : UIChart
|
||||
{
|
||||
protected bool NeedDraw;
|
||||
|
@ -32,6 +32,7 @@ using System.Windows.Forms;
|
||||
namespace Sunny.UI
|
||||
{
|
||||
[ToolboxItem(true)]
|
||||
[Description("饼状图控件")]
|
||||
public sealed class UIPieChart : UIChart
|
||||
{
|
||||
/// <summary>
|
||||
|
@ -32,6 +32,7 @@ namespace Sunny.UI
|
||||
[DefaultEvent("ValueChanged")]
|
||||
[DefaultProperty("Value")]
|
||||
[ToolboxItem(true)]
|
||||
[Description("水平滚动条控件")]
|
||||
public sealed class UIHorScrollBar : UIControl
|
||||
{
|
||||
public UIHorScrollBar()
|
||||
|
@ -30,6 +30,7 @@ using System.Windows.Forms;
|
||||
namespace Sunny.UI
|
||||
{
|
||||
[ToolboxItem(true)]
|
||||
[Description("水平滚动条控件")]
|
||||
public class UIHorScrollBarEx : UIControl
|
||||
{
|
||||
public UIHorScrollBarEx()
|
||||
|
@ -31,6 +31,7 @@ using System.Windows.Forms;
|
||||
namespace Sunny.UI
|
||||
{
|
||||
[ToolboxItem(true)]
|
||||
[Description("进度指示器控件")]
|
||||
public sealed class UIProgressIndicator : UIControl
|
||||
{
|
||||
private readonly Timer timer;
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -38,6 +38,7 @@ namespace Sunny.UI
|
||||
{
|
||||
[DefaultEvent("TextChanged")]
|
||||
[DefaultProperty("Text")]
|
||||
[Description("富文本输入框控件")]
|
||||
public sealed class UIRichTextBox : UIPanel, IToolTip
|
||||
{
|
||||
private UIScrollBar bar;
|
||||
|
@ -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>
|
||||
|
@ -37,6 +37,7 @@ namespace Sunny.UI
|
||||
[ToolboxItem(true)]
|
||||
[DefaultEvent("ValueChanged")]
|
||||
[DefaultProperty("Value")]
|
||||
[Description("圆形进度条控件")]
|
||||
public class UIRoundProcess : UIControl
|
||||
{
|
||||
public UIRoundProcess()
|
||||
|
@ -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;
|
||||
|
@ -33,6 +33,7 @@ namespace Sunny.UI
|
||||
[DefaultEvent("ValueChanged")]
|
||||
[DefaultProperty("Value")]
|
||||
[ToolboxItem(true)]
|
||||
[Description("滚动条控件")]
|
||||
public sealed class UIScrollBar : UIControl
|
||||
{
|
||||
public UIScrollBar()
|
||||
|
@ -33,6 +33,7 @@ using System.Windows.Forms;
|
||||
namespace Sunny.UI
|
||||
{
|
||||
[ToolboxItem(true)]
|
||||
[Description("滚动文字控件")]
|
||||
public class UIScrollingText : UIControl
|
||||
{
|
||||
private readonly Timer timer;
|
||||
|
@ -31,6 +31,7 @@ namespace Sunny.UI
|
||||
[DefaultEvent("Click")]
|
||||
[DefaultProperty("Level")]
|
||||
[ToolboxItem(true)]
|
||||
[Description("信号强度显示控件")]
|
||||
public class UISignal : UIControl
|
||||
{
|
||||
public UISignal()
|
||||
|
@ -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;
|
||||
|
@ -30,6 +30,7 @@ using System.Windows.Forms;
|
||||
|
||||
namespace Sunny.UI
|
||||
{
|
||||
[Description("分割容器控件")]
|
||||
public sealed class UISplitContainer : SplitContainer, IStyleInterface, IZoomScale
|
||||
{
|
||||
private enum UIMouseType
|
||||
|
@ -25,6 +25,7 @@ using System.Windows.Forms;
|
||||
|
||||
namespace Sunny.UI
|
||||
{
|
||||
[Description("根据状态显示图片控件")]
|
||||
public class UIStatusBox : PictureBox
|
||||
{
|
||||
/// <summary>
|
||||
|
@ -37,6 +37,7 @@ namespace Sunny.UI
|
||||
[DefaultEvent("ValueChanged")]
|
||||
[DefaultProperty("Active")]
|
||||
[ToolboxItem(true)]
|
||||
[Description("开关控件")]
|
||||
public sealed class UISwitch : UIControl
|
||||
{
|
||||
/// <summary>
|
||||
|
@ -36,6 +36,7 @@ namespace Sunny.UI
|
||||
{
|
||||
[DefaultEvent("Click")]
|
||||
[DefaultProperty("Text")]
|
||||
[Description("字体图标按钮控件")]
|
||||
public class UISymbolButton : UIButton, ISymbol
|
||||
{
|
||||
private int _symbolSize = 24;
|
||||
|
@ -36,6 +36,7 @@ namespace Sunny.UI
|
||||
[ToolboxItem(true)]
|
||||
[DefaultEvent("Click")]
|
||||
[DefaultProperty("Text")]
|
||||
[Description("带字体图标的标签控件")]
|
||||
public sealed class UISymbolLabel : UIControl, ISymbol
|
||||
{
|
||||
private int _symbolSize = 24;
|
||||
|
@ -51,6 +51,7 @@ using Sunny.UI.Win32;
|
||||
|
||||
namespace Sunny.UI
|
||||
{
|
||||
[Description("标签控件")]
|
||||
public sealed class UITabControl : TabControl, IStyleInterface, IZoomScale
|
||||
{
|
||||
private readonly UITabControlHelper Helper;
|
||||
|
@ -30,6 +30,7 @@ using System.Windows.Forms;
|
||||
|
||||
namespace Sunny.UI
|
||||
{
|
||||
[Description("标签菜单控件")]
|
||||
public sealed class UITabControlMenu : TabControl, IStyleInterface, IZoomScale
|
||||
{
|
||||
public UITabControlMenu()
|
||||
|
@ -26,6 +26,7 @@ using System.Windows.Forms;
|
||||
|
||||
namespace Sunny.UI
|
||||
{
|
||||
[Description("动态布局面板控件")]
|
||||
public sealed class UITableLayoutPanel : TableLayoutPanel, IStyleInterface
|
||||
{
|
||||
public UITableLayoutPanel()
|
||||
|
@ -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();
|
||||
|
@ -29,6 +29,7 @@ namespace Sunny.UI
|
||||
[DefaultEvent("ValueChanged")]
|
||||
[DefaultProperty("Value")]
|
||||
[ToolboxItem(true)]
|
||||
[Description("温度计控件")]
|
||||
public class UIThermometer : UIControl
|
||||
{
|
||||
public event EventHandler ValueChanged;
|
||||
|
@ -33,6 +33,7 @@ namespace Sunny.UI
|
||||
[ToolboxItem(true)]
|
||||
[DefaultProperty("Value")]
|
||||
[DefaultEvent("ValueChanged")]
|
||||
[Description("时间选择框控件")]
|
||||
public sealed class UITimePicker : UIDropControl, IToolTip
|
||||
{
|
||||
private void InitializeComponent()
|
||||
|
@ -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;
|
||||
|
@ -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 =
|
||||
|
@ -33,6 +33,7 @@ namespace Sunny.UI
|
||||
[DefaultEvent("ValueChanged")]
|
||||
[DefaultProperty("Value")]
|
||||
[ToolboxItem(true)]
|
||||
[Description("进度指示条控件")]
|
||||
public sealed class UITrackBar : UIControl
|
||||
{
|
||||
public event EventHandler ValueChanged;
|
||||
|
@ -36,6 +36,7 @@ namespace Sunny.UI
|
||||
/// 穿梭框
|
||||
/// </summary>
|
||||
[DefaultProperty("ItemsLeft")]
|
||||
[Description("穿梭框控件")]
|
||||
public sealed partial class UITransfer : UIPanel
|
||||
{
|
||||
/// <summary>
|
||||
|
@ -56,6 +56,7 @@ namespace Sunny.UI
|
||||
{
|
||||
[DefaultEvent("AfterSelect")]
|
||||
[DefaultProperty("Nodes")]
|
||||
[Description("树形列表控件")]
|
||||
public sealed class UITreeView : UIPanel, IToolTip
|
||||
{
|
||||
private UIScrollBar Bar;
|
||||
|
@ -31,6 +31,7 @@ namespace Sunny.UI
|
||||
[DefaultEvent("ValueChanged")]
|
||||
[DefaultProperty("Active")]
|
||||
[ToolboxItem(true)]
|
||||
[Description("旋转开关控件")]
|
||||
public class UITurnSwitch : UIControl
|
||||
{
|
||||
/// <summary>
|
||||
|
@ -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;
|
||||
|
@ -31,6 +31,7 @@ namespace Sunny.UI
|
||||
[ToolboxItem(true)]
|
||||
[DefaultProperty("Active")]
|
||||
[DefaultEvent("ActiveChanged")]
|
||||
[Description("阀门控件")]
|
||||
public sealed class UIValve : Control, IZoomScale
|
||||
{
|
||||
public UIValve()
|
||||
|
@ -30,6 +30,7 @@ using System.Windows.Forms;
|
||||
namespace Sunny.UI
|
||||
{
|
||||
[ToolboxItem(true)]
|
||||
[Description("垂直滚动条控件")]
|
||||
public class UIVerScrollBarEx : UIControl
|
||||
{
|
||||
public UIVerScrollBarEx()
|
||||
|
@ -33,6 +33,7 @@ namespace Sunny.UI
|
||||
[DefaultEvent("Click")]
|
||||
[DefaultProperty("Text")]
|
||||
[ToolboxItem(true)]
|
||||
[Description("验证码控件")]
|
||||
public class UIVerificationCode : UIControl
|
||||
{
|
||||
public UIVerificationCode()
|
||||
|
@ -29,6 +29,7 @@ using System.Windows.Forms;
|
||||
namespace Sunny.UI
|
||||
{
|
||||
[ToolboxItem(true)]
|
||||
[Description("等待滚动条控件")]
|
||||
public sealed class UIWaitingBar : UIControl
|
||||
{
|
||||
private readonly Timer timer;
|
||||
|
@ -29,6 +29,7 @@ namespace Sunny.UI
|
||||
/// <summary>
|
||||
/// 主题样式管理类
|
||||
/// </summary>
|
||||
[Description("主题样式管理控件")]
|
||||
public class UIStyleManager : Component
|
||||
{
|
||||
/// <summary>
|
||||
|
Loading…
x
Reference in New Issue
Block a user