Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Avoid unsetting item container DataContext
Previously we were clearing ItemsControl items' DataContext instead of nulling them out. Unsetting the DP value caused inheritance to take over, and that meant the item temporarily gained the DataContext of the ItemsControl - which could have been a UIElement, which then caused it to become the item's Content. This caused very odd issues like #12845. (cherry picked from commit 02b42f4)
- Loading branch information