* 修改了一些控件的属性编辑器
This commit is contained in:
parent
ea391252b4
commit
59e5697de4
Binary file not shown.
11
SunnyUI/Common/UAssemblyRef.cs
Normal file
11
SunnyUI/Common/UAssemblyRef.cs
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
namespace Sunny.UI
|
||||||
|
{
|
||||||
|
internal static class AssemblyRefEx
|
||||||
|
{
|
||||||
|
internal const string Version = "4.0.0.0";
|
||||||
|
internal const string MicrosoftPublicKey = "b03f5f7f11d50a3a";
|
||||||
|
internal const string SystemDesign = "System.Design, Version=" + Version + ", Culture=neutral, PublicKeyToken=" + MicrosoftPublicKey;
|
||||||
|
internal const string SystemDrawingDesign = "System.Drawing.Design, Version=" + Version + ", Culture=neutral, PublicKeyToken=" + MicrosoftPublicKey;
|
||||||
|
internal const string SystemDrawing = "System.Drawing, Version=" + Version + ", Culture=neutral, PublicKeyToken=" + MicrosoftPublicKey;
|
||||||
|
}
|
||||||
|
}
|
@ -22,6 +22,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
|
using System.Drawing.Design;
|
||||||
using System.Runtime.InteropServices;
|
using System.Runtime.InteropServices;
|
||||||
using System.Security.Permissions;
|
using System.Security.Permissions;
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
@ -35,7 +36,7 @@ namespace Sunny.UI
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
[ComVisible(true)]
|
[ComVisible(true)]
|
||||||
[ToolboxItem(false)]
|
[ToolboxItem(false)]
|
||||||
[Editor(typeof(UIRadiusSidesEditor), typeof(System.Drawing.Design.UITypeEditor))]
|
[Editor("Sunny.UI.UIRadiusSidesEditor, " + AssemblyRefEx.SystemDesign, typeof(UITypeEditor))]
|
||||||
[Flags]
|
[Flags]
|
||||||
public enum UICornerRadiusSides
|
public enum UICornerRadiusSides
|
||||||
{
|
{
|
||||||
|
@ -201,7 +201,7 @@ namespace Sunny.UI
|
|||||||
/// 图标字符
|
/// 图标字符
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
|
[DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
|
||||||
[Editor(typeof(UIImagePropertyEditor), typeof(UITypeEditor))]
|
[Editor("Sunny.UI.UIImagePropertyEditor, " + AssemblyRefEx.SystemDesign, typeof(UITypeEditor))]
|
||||||
[DefaultValue(61447), Description("图标"), Category("SunnyUI")]
|
[DefaultValue(61447), Description("图标"), Category("SunnyUI")]
|
||||||
public int Symbol
|
public int Symbol
|
||||||
{
|
{
|
||||||
|
@ -352,7 +352,7 @@ namespace Sunny.UI
|
|||||||
private int _symbol = FontAwesomeIcons.fa_check;
|
private int _symbol = FontAwesomeIcons.fa_check;
|
||||||
|
|
||||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
|
[DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
|
||||||
[Editor(typeof(UIImagePropertyEditor), typeof(UITypeEditor))]
|
[Editor("Sunny.UI.UIImagePropertyEditor, " + AssemblyRefEx.SystemDesign, typeof(UITypeEditor))]
|
||||||
[DefaultValue(61452)]
|
[DefaultValue(61452)]
|
||||||
[Description("字体图标"), Category("SunnyUI")]
|
[Description("字体图标"), Category("SunnyUI")]
|
||||||
public int Symbol
|
public int Symbol
|
||||||
|
@ -26,13 +26,13 @@
|
|||||||
using System;
|
using System;
|
||||||
using System.ComponentModel;
|
using System.ComponentModel;
|
||||||
using System.Drawing;
|
using System.Drawing;
|
||||||
using System.Drawing.Design;
|
|
||||||
using System.Windows.Forms;
|
using System.Windows.Forms;
|
||||||
|
|
||||||
namespace Sunny.UI
|
namespace Sunny.UI
|
||||||
{
|
{
|
||||||
[DefaultEvent("MenuItemClick")]
|
[DefaultEvent("MenuItemClick")]
|
||||||
[DefaultProperty("Nodes")]
|
[DefaultProperty("Nodes")]
|
||||||
|
[Designer("System.Windows.Forms.Design.TreeViewDesigner, " + AssemblyRefEx.SystemDesign)]
|
||||||
public sealed partial class UINavBar : ScrollableControl, IStyleInterface
|
public sealed partial class UINavBar : ScrollableControl, IStyleInterface
|
||||||
{
|
{
|
||||||
public readonly TreeView Menu = new TreeView();
|
public readonly TreeView Menu = new TreeView();
|
||||||
@ -308,7 +308,7 @@ namespace Sunny.UI
|
|||||||
[Localizable(true)]
|
[Localizable(true)]
|
||||||
[MergableProperty(false)]
|
[MergableProperty(false)]
|
||||||
[Description("菜单栏显示节点集合"), Category("SunnyUI")]
|
[Description("菜单栏显示节点集合"), Category("SunnyUI")]
|
||||||
[Editor("System.Windows.Forms.Design.TreeNodeCollectionEditor", typeof(UITypeEditor))]
|
//[Editor("System.Windows.Forms.Design.TreeNodeCollectionEditor", typeof(UITypeEditor))]
|
||||||
public TreeNodeCollection Nodes => Menu.Nodes;
|
public TreeNodeCollection Nodes => Menu.Nodes;
|
||||||
|
|
||||||
[DefaultValue(null)]
|
[DefaultValue(null)]
|
||||||
|
@ -207,7 +207,7 @@ namespace Sunny.UI
|
|||||||
private int _symbol = FontAwesomeIcons.fa_check;
|
private int _symbol = FontAwesomeIcons.fa_check;
|
||||||
|
|
||||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
|
[DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
|
||||||
[Editor(typeof(UIImagePropertyEditor), typeof(UITypeEditor))]
|
[Editor("Sunny.UI.UIImagePropertyEditor, " + AssemblyRefEx.SystemDesign, typeof(UITypeEditor))]
|
||||||
[DefaultValue(61452)]
|
[DefaultValue(61452)]
|
||||||
[Description("字体图标"), Category("SunnyUI")]
|
[Description("字体图标"), Category("SunnyUI")]
|
||||||
public int Symbol
|
public int Symbol
|
||||||
|
@ -135,7 +135,7 @@ namespace Sunny.UI
|
|||||||
private int _symbol = FontAwesomeIcons.fa_check;
|
private int _symbol = FontAwesomeIcons.fa_check;
|
||||||
|
|
||||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
|
[DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
|
||||||
[Editor(typeof(UIImagePropertyEditor), typeof(UITypeEditor))]
|
[Editor("Sunny.UI.UIImagePropertyEditor, " + AssemblyRefEx.SystemDesign, typeof(UITypeEditor))]
|
||||||
[DefaultValue(61452)]
|
[DefaultValue(61452)]
|
||||||
[Description("字体图标"), Category("SunnyUI")]
|
[Description("字体图标"), Category("SunnyUI")]
|
||||||
public int Symbol
|
public int Symbol
|
||||||
|
@ -1094,7 +1094,7 @@ namespace Sunny.UI
|
|||||||
private int _symbol;
|
private int _symbol;
|
||||||
|
|
||||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
|
[DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
|
||||||
[Editor(typeof(UIImagePropertyEditor), typeof(UITypeEditor))]
|
[Editor("Sunny.UI.UIImagePropertyEditor, " + AssemblyRefEx.SystemDesign, typeof(UITypeEditor))]
|
||||||
[DefaultValue(0)]
|
[DefaultValue(0)]
|
||||||
[Description("字体图标"), Category("SunnyUI")]
|
[Description("字体图标"), Category("SunnyUI")]
|
||||||
public int Symbol
|
public int Symbol
|
||||||
@ -1139,7 +1139,7 @@ namespace Sunny.UI
|
|||||||
}
|
}
|
||||||
|
|
||||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
|
[DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
|
||||||
[Editor(typeof(UIImagePropertyEditor), typeof(UITypeEditor))]
|
[Editor("Sunny.UI.UIImagePropertyEditor, " + AssemblyRefEx.SystemDesign, typeof(UITypeEditor))]
|
||||||
[DefaultValue(0)]
|
[DefaultValue(0)]
|
||||||
[Description("按钮字体图标"), Category("SunnyUI")]
|
[Description("按钮字体图标"), Category("SunnyUI")]
|
||||||
public int ButtonSymbol
|
public int ButtonSymbol
|
||||||
|
@ -36,6 +36,9 @@ using System.Windows.Forms;
|
|||||||
|
|
||||||
namespace Sunny.UI
|
namespace Sunny.UI
|
||||||
{
|
{
|
||||||
|
[DefaultEvent("AfterSelect")]
|
||||||
|
[DefaultProperty("Nodes")]
|
||||||
|
[Designer("System.Windows.Forms.Design.TreeViewDesigner, " + AssemblyRefEx.SystemDesign)]
|
||||||
public sealed class UITreeView : UIPanel, IToolTip
|
public sealed class UITreeView : UIPanel, IToolTip
|
||||||
{
|
{
|
||||||
private UIScrollBar Bar;
|
private UIScrollBar Bar;
|
||||||
|
@ -141,7 +141,7 @@ namespace Sunny.UI
|
|||||||
private int extendSymbol;
|
private int extendSymbol;
|
||||||
|
|
||||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
|
[DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
|
||||||
[Editor(typeof(UIImagePropertyEditor), typeof(UITypeEditor))]
|
[Editor("Sunny.UI.UIImagePropertyEditor, " + AssemblyRefEx.SystemDesign, typeof(UITypeEditor))]
|
||||||
[DefaultValue(0)]
|
[DefaultValue(0)]
|
||||||
[Description("扩展按钮字体图标"), Category("SunnyUI")]
|
[Description("扩展按钮字体图标"), Category("SunnyUI")]
|
||||||
public int ExtendSymbol
|
public int ExtendSymbol
|
||||||
|
@ -116,7 +116,7 @@ namespace Sunny.UI
|
|||||||
private int _symbol;
|
private int _symbol;
|
||||||
|
|
||||||
[DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
|
[DesignerSerializationVisibility(DesignerSerializationVisibility.Visible)]
|
||||||
[Editor(typeof(UIImagePropertyEditor), typeof(UITypeEditor))]
|
[Editor("Sunny.UI.UIImagePropertyEditor, " + AssemblyRefEx.SystemDesign, typeof(UITypeEditor))]
|
||||||
[DefaultValue(0)]
|
[DefaultValue(0)]
|
||||||
[Description("字体图标"), Category("SunnyUI")]
|
[Description("字体图标"), Category("SunnyUI")]
|
||||||
public int Symbol
|
public int Symbol
|
||||||
|
Loading…
x
Reference in New Issue
Block a user