I'm trying to set the expanded state on load. I'm using the following RowLoaded handler.
This works to set the expanded state properly, but then none of the items in the treeview can be expanded or contracted. I tried setting IsExpandable to true for the items, but that didn't work either. It seems that once the initial state is set, it cannot be changed.
Any ideas on how I can fix this?