The view needs to account for that it will be load...
# tornadofx
e
The view needs to account for that it will be loaded several times. The expanded state is fetched from the
ExpandedStateHolder
and applied to the TitledPane. Then the expandedState from the state holder is bound to the expanded property of the title pane, to keep it in sync when the expanded state changes. Whenever the view is recreated, the expanded state will be kept.