Hi everyone!

I am working on a custom control, and for the life of me I can't figure this one out.

As of right now, all properties for controls that are settable in the editor I use this code:


I fill in the blanks appropriately, but the control I am working on now will be bindable, and I need a DataSource property which is fine, but I can't get the editor to allow me to set the property since the property uses an object. Is there a way to achieve this:

Right now I get nothing. The property is grey and can't be set except in code. Am I missing an attribute or is there something else I can do?


Adding RefreshProperties(RefreshProperties.Repaint), AttributeProvider(typeof(IListSource))] seems to have done the trick!

I love metadata!

This question has already been answered. Start a new discussion instead.