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