Editor for List<string> in the property grid RRS feed

  • Question

  • I have a custom activity that has a property with type List<string>. I want the Property Grid to display a editor to add and remove items from this list. I believe there is a generic editor for Collection of strings.

    I have tried many syntax similar to the following, but all I see in property grid is "(Collection)" and there is no button to pull up the editor.

    [EditorAttribute(typeof(CollectionEditor), typeof(UITypeEditor))]
            public List<string> SandboxStreams1
                    return this.sandboxStreams;
                    this.sandboxStreams = value;

    Tuesday, October 2, 2012 5:36 AM


  • I believe typeof(UITypeEditor) is not supported with Workflow Designer property editors. And that only two types will work: PropertyValueEditor and DialogPropertyValueEditor.

    Edit: actually it looks like maybe I was just slightly wrong: there's another subclass of PropertyValueEditor, which if it also works, brings the number up to 3:


    I'm not sure how this one works.

    • Edited by Tim Lovell-Smith Tuesday, October 2, 2012 10:32 PM
    • Marked as answer by LeoTang Tuesday, October 9, 2012 8:57 AM
    Tuesday, October 2, 2012 10:30 PM