Skip to content

Conversation

@greuelpirat
Copy link
Contributor

I have a performance issue in TextBox.OnTextChanged handler in Version 5.2.1 with poor responsiveness. I tracked it down to TextBoxLineCountBehavior:

image

There has already been an improvement to queue the update with Background-priority. That is good.

But I also noticed, that TextBox.LineCount is evaluated twice. This PR reduces the calls to one, so it improves background performance even more.

@Keboo Keboo added this to the 5.3.0 milestone Jun 18, 2025
Copy link
Member

@Keboo Keboo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome work on the analysis. Thank you.

@Keboo Keboo enabled auto-merge (squash) June 18, 2025 17:08
@Keboo Keboo merged commit 4733a54 into MaterialDesignInXAML:master Jun 18, 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

2 participants