OnExpanderCollapsed added to treeviewitem to collapse opened classes, when category is closed.