温馨提示:代码在线浏览功能只能做为源码浏览参考,不能展示项目的全部,如果想更进一步了解该代码请下载:HeroBeastControls的NavMenu导航控件Demo及源码
当前文件路径:HeroBeastControlsNavMenu/NavMenu/Editor/NavMenuSubItemEditor.cs

1using System; 2
using System.ComponentModel; 3
using System.ComponentModel.Design; 4
using System.Reflection; 5
using System.Web.UI.HtmlControls; 6
7
namespace HeroBeastControls.NavMenu 8
{ 9
public class NavMenuSubItemEditor : CollectionEditor 10
{ 11
public NavMenuSubItemEditor(Type type) 12
: base(type) 13
{ 14
} 15
//一次可否选择多项 16
protected override bool CanSelectMultipleInstances() 17
{ 18
return false; 19
} 20
21
//获取此集合包含的数据类型 22
protected override Type CreateCollectionItemType() 23
{ 24
return typeof(NavMenuSubItem); 25
} 26
} 27
} 28





}
}