PDA

View Full Version : [CLOSED] ConfigOption attribute



macinator
Nov 11, 2013, 7:52 PM
HI,

I am trying to add custom properties to some of my custom control classes and I know that you can override the ConfigOptionsCollection build

but on some of the existing source code, i see that you did not do that, but rather used a Config Option attribute for the custom property

How does this work and what is the best practice when doing custom properties for custom controls

Thanks

Baidaly
Nov 11, 2013, 9:04 PM
Hello!

Generally, using ConfigOptionsCollection is better in custom control. Does it cause some problems?

Daniil
Nov 12, 2013, 8:44 AM
A ConfigOption attribute is used by our own parser. That parser creates the ConfigOptions property as needed. Just to automatize the process. So, the ConfigOption attribute works in the Ext.NET project only. In your case you should override it manually.