Show Expand/Collapse all only to the root of TreeView directives

MIFOSX-1692
Merge pull request #1157 from MegaAlex/MIFOSX-1692-2

Show Expand/Collapse all only to the root of TreeView directives