Skip to content

Conversation

@JorisCleVR
Copy link
Contributor

When a TextBox was used within a DataGrid that has virtualization enabled we got a NullReferenceException.
During the (re)drawing of a DataGrid some references used in the callstack of the TextBox.LineCount getter are null during the LayoutUpdated call.
Dispatching to the GUI thread with priority background resolves this because then the DataGrid has time to fully recalculate before the LineCount is retrieved.

@Keboo Keboo enabled auto-merge (squash) June 13, 2025 18:00
@Keboo Keboo merged commit 66b836b into MaterialDesignInXAML:master Jun 13, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants