I have a 4 row, 1 column Grid wrapped in a ScrollViewer. The rows are Treeviews that are bound to hierarchy (nested Lists) of objects. I'm using a HierarchicalDataTemplate to lay out the TreeViewItem nodes and their children / ItemTemplates.
My problems is that whenever I expand the TreeViewItems, the vertical scrollbar is not showing up. Oddly enough, the horizontal scrollbar will show up when I expand out an AccordionItem that is part of the child nodes.
I have tried creating an event handler that calls UpdateLayout() whenever a TreeViewItem is expanded, but that's not causing the scrollbar to appear. I have tried calling UpdateLayout() against the TreeView, the Grid, and the ScrollViewer as well.