使用CollectionEditor时出现问题 [英] Problem using the CollectionEditor
本文介绍了使用CollectionEditor时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在WF3.5中,我开发了一个自定义活动,其中包含一系列自定义对象.以下是我用来定义列表属性的代码
In WF3.5, I developed a custom activity that has a list of custom defined objects. Following is the code I used to define that list property
Private System.Collections.Generic.List<CustomObject> CustomObjectListProperty = new
System.Collections.Generic.List< CustomObject>();
[BrowsableAttribute(true
)]
[TypeConverter(typeof
(ListConverter<CustomObject>))]
[Editor(typeof
(CustomObjectListEditor), typeof
(UITypeEditor))]
[DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Content)]
public
System.Collections.Generic.List<CustomObject> CustomObjectList
{
get
{
return
this
.CustomObjectListProperty;
}
set
{
this
.CustomObjectListProperty = value;
}
}
推荐答案
您好,Ujjee-您看过PropertyGrid示例吗?
Hello Ujjee - have you looked at the PropertyGrid sample?
http://msdn.microsoft.com/en-us/library/ee834515.aspx
这篇关于使用CollectionEditor时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文