I use subclassing frequently in my projects. Needless to say, this is a very useful principle that keeps your code clean and compact.
Although subclassing the folderitem-class works differently. When you subclass a folderitem which is a folder (IsFolder) then it may have children. And it’s children are just folderitem objects defined by the system, it’s type is not equal to the subclassed parent.
Does anybody know how a handy way change the type of its children, equal to the subclassed parent?
3 posts - 3 participants