Previously we were calling e.g. TreeDataGridCellsPresenter.UpdateRowIndex from TreeDataGridRow.Realize instead of TreeDataGridCellsPresenter.Realize. This was causing the cells presenter to be stuck in a half-realized state. Make sure we call child Realize on realize and parent UpdateRowIndex only when updating row index. Added checks to ensure that UpdateRowIndex can't be called on an unrealized row or cell.
I'm still unclear as to why this shows up only when switching tabs (on the sample app) and I've been unable to create a failing unit test for it so far, hence marking it as draft.
Previously we were calling e.g.
TreeDataGridCellsPresenter.UpdateRowIndex
fromTreeDataGridRow.Realize
instead ofTreeDataGridCellsPresenter.Realize
. This was causing the cells presenter to be stuck in a half-realized state. Make sure we call childRealize
on realize and parentUpdateRowIndex
only when updating row index. Added checks to ensure thatUpdateRowIndex
can't be called on an unrealized row or cell.I'm still unclear as to why this shows up only when switching tabs (on the sample app) and I've been unable to create a failing unit test for it so far, hence marking it as draft.
Fixes #218