In previous versions of the TableOfContents control the treeview was collapsed by default. Now in 100.7.1 it is expanded by default. We have a large number of layers and this is not acceptable to the users.
Current default:

I tried to see if I could close them when the TableOfContents is loaded by setting IsExpanded on the item to false, but this did not take
foreach (var item in TableOfContents.ItemsSource)
{
if ( item is TocItem tocItem )
{
tocItem.IsExpanded = false;
}
}<SPAN class="line-numbers-rows"><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN><SPAN></SPAN></SPAN>How can I get these to be collapsed when the TableOfContents initially
Morten Nielsen
Thanks
-Joe