views:

23

answers:

1

I want to design a Visual studio type property window where user can modify the properties of the controls. When the user selects the particular control in the UI, all the editable properties should be visible in the property window. The user control should have control on what properties it want to expose for property window. The user control will also be responsible for validation of properties. The controls are not static, means that the controls can be added as a dll and then those controls would be visible in the user interface. I am looking for the design of this system, not for UI design.

A: 
Wouter van Nifterick
My application is in Silverlight. I do not want to expose all the properties. If I use the reflection then It will give me all the properties defined in the control. What about using some custom attribute? Will it be good design? How can I handle the combo box type of properties (where user should be able to select the values from the given values)?