Last post Sep 19, 2006 10:48 PM by kalvagadda
Nov 15, 2005 11:58 AM|adlionel|LINK
I've built a composite control with a ReadOnly custom collection
I can manage collection items in the property editor with a custom
CollectionEditor. It works fine.
Now I want to manage this collection in a smart tag panel. I can read
the collection items using a DesignerActionPropertyItem in an inherited
DesignerActionList class but I cannot apply changes to the control.
After collection editing changes are not applied.
How can I achive that? I've not found a working sample for this
particular configuration (But I'm sure it's possible as for example
DropDownList ListItemCollection is managed such a way)
Thanks for your answers.
Dec 07, 2005 09:59 AM|adlionel|LINK
I've solved this problem following the CustomDataGridViewSmartTag sample in
you can find a sample of how to launch a UITypeEditor from a Smart Tag (EditorServiceContext.cs file).
Then instead of using a DesignerActionPropertyItem to edit your collection use a DesignerActionMethodItem. The method called by the verb will call the EditValue static method found in EditorServiceContext.cs file to edit the
Please note that then you can edit various controls in a DesignerActionPropertyItem and not only collections.
Moreover you will find this custom verb in the contextual menu of the control
Dec 07, 2005 12:48 PM|jjstreic|LINK
I'm glad you found a solution. Thanks for reporting back to the forum!
Dec 07, 2005 05:26 PM|Blake05|LINK
Sep 19, 2006 10:48 PM|kalvagadda|LINK
thank you very much. It was very helpful