By default, all nested tasks are displayed expanded.
The state of the root task is always the most important, so it makes more sense to display tasks minimized by default.
The user can always expand the required task for details.
The solution is to support the "IsExpanded" property for the task model.
When a property changes, the task changes its state.
For the component, also add the "ExpandAll" and "CollapseAll" methods that affect all tasks in the list.