开发者

Initialize same settings for a devexpress control in multiple forms

I'm using the PropertyGrid control from DevExpress in multiple forms. I have a ImageComboBoxEdit with the same settings (same ImageList, ItemList and multiple settings) on all of the forms.

I want all of them to have the same settings on the forms and don't want to go through all the forms to add a new option in the Combo.

What would be the best practices to implement 开发者_C百科this? I've tried inheriting the RepositoryItem with limited success. Another idea would be to create a static helper class to initialize the default ImageComboBoxEdit with the right settings.

What would you prefer? Any other ideas?

Gunnar Steinn


One more idea is to use the comboBox on a UserControl. Thus, you will have to adjust it only once and then use this UserControl on as many forms as you want.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜