I have a TreeDataGrid with a hierarchical structure. After expanding and collapsing several nodes I get an exception on the method 'RecycleElementsAfter'.
On RealizedStackElements.cs:

On TreeDataGridPresenterBase.cs:

Sreenshot of the Call Stack:

Steps to reproduce:
- Open the hierarchical TreeDataGrid
- Open all the possible nodes
Then the crash will happen