OutlineView sample showing preservation of selection and expansion state across saves and undo/redo.