Use a ClipRegion when collapsing, so that the TreeView works correctly.