What's the state of play with “Visual Inheritance”

后端 未结 6 1354
-上瘾入骨i
-上瘾入骨i 2021-01-05 02:27

We have an application that has to be flexible in how it displays it\'s main form to the user - depending on the user, the form should be slightly different, maybe an extra

6条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-05 03:04

    Read this: http://cs.rthand.com/blogs/blog_with_righthand/archive/2005/11/10/186.aspx

    AFAIK, there are still issues with Visual Inheritance and objects that rely on collections for the design elements, typically grid controls etc. I believe MS still have removed the possibility of changing f.ex. a GridView in an inherited form/usercontrol etc. But other controls like TextBox, Form, UserControl, Panel etc. should work as expected.

    I've so far had no problem with VI using 3rd party grid controls myself, but you have to be careful, in particular, removing items from collections MUST be avoided.

提交回复
热议问题