Home Forums WPF controls Xceed Toolkit Plus for WPF CollectionControl: set custom editor on PropertyGrid properties

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
  • GuglielmoCancelli
    Post count: 19
    #44695 |

    CollectionControl does not expose PropertyGrid property so I’m unable to set a custom editor template on some of the properties contained in the PropertyGrid.

    Getting into the details:
    The ItemSource of a CollectionControl is a list of objects: List<Foo>.
    Foo object contains several properties, one of which is a Bar object.
    These properties are listed in the PropertyGrid (contained in a CollectionControl): Xceed Toolkit applies its own editors, where available, but he doesn’t know what to do with the Bar object and leaves only: ‘IList<Foo>.Bar (or something like that).

    How can I set a custom EditorTemplate on the Bar object?


    Fawzi [Xceed]
    Post count: 722


    We were able to reproduce the issue. This should be fixed in our upcoming service release V3.4.

    The idea would be to declare the EditorTemplateDefinitions of all the properties you want to have a custom editor in the PropertyGrid.EditorDefinitions property, as you are currently doing. The CollectionControl’s PropertyGrid would be using this EditorDefinitions to customize its specific properties.

    Post count: 19

    Great, thank you!

    In the meanwhile I’ll decorate the properties with the Editor attribute.

    All the best

    Post count: 1

    We are currently using some CustomPropertyItem and would like to use an EditorComboBoxDefinition for presenting a combo box in the PropertyGrid.

    The CustomPropertyItem has an Editor property from its base class PropertyItemBase.
    However, this property is a System.Windows.FrameworkElement type and cannot be set from an EditorComboBoxDefinition.

    How can I set the Editor property on a CustomPropertyItem?

    Diane [Xceed]
    Post count: 1353

    This is to inform you that the following issue was fixed in the latest version (Toolkit for WPF v3.4):
    “In PropertyGrid, defining EditorDefnitions will now apply them to the custom editors of the CollectionControl’s PropertyGrid.”

    Download Link: http://forums.xceed.com/latest-xceed-toolkit-plus-for-wpf

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.