locked
Problem using the CollectionEditor RRS feed

  • Question

  • Hi,

    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;
    }
    }
    CustomObjectListEditor was a class inherited from CollectionEditor class.

    Now, I am trying to develop the same activity in WF4.0 but the above code does not work. The CustomObjectList property does not even show the 'ellipses button' to display the CollectionEditor form, instead it displays a dropdown list of two items; one is List`1 and the second is (null) .

    Can anyone help??

    Wednesday, April 14, 2010 6:53 AM

All replies