Skip to content

Make text in NumericUpDown update immediately when changing the TextC… - #21320

Merged
MrJul merged 1 commit into
AvaloniaUI:masterfrom
cdytoby:feature/numericupdown-converter-refresh-text
May 15, 2026
Merged

Make text in NumericUpDown update immediately when changing the TextC…#21320
MrJul merged 1 commit into
AvaloniaUI:masterfrom
cdytoby:feature/numericupdown-converter-refresh-text

Conversation

@cdytoby

@cdytoby cdytoby commented May 6, 2026

Copy link
Copy Markdown
Contributor

…onverter.

What does the pull request do?

Resolves #21316
App needs to show the updated text in NumericUpDown when changing the TextConverter.

What is the current behavior?

When TextConverter is modified, the Text doesn't update immediately.

What is the updated/expected behavior with this PR?

When TextConverter is modified, the Text now updates immediately too.

How was the solution implemented (if it's not obvious)?

Use the overload of the method SyncTextAndValueProperties that includes the parameter to update the text.

Checklist

Breaking changes

Obsoletions / Deprecations

Fixed issues

@MrJul MrJul added bug backport-candidate-12.0.x Consider this PR for backporting to 12.0 branch labels May 6, 2026
@avaloniaui-bot

Copy link
Copy Markdown

You can test this PR using the following package version. 12.1.999-cibuild0065250-alpha. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@cla-avalonia

cla-avalonia commented May 6, 2026

Copy link
Copy Markdown
Collaborator
  • All contributors have signed the CLA.

@cdytoby

cdytoby commented May 6, 2026

Copy link
Copy Markdown
Contributor Author

@cla-avalonia agree

@MrJul MrJul left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM!

@MrJul
MrJul added this pull request to the merge queue May 15, 2026
Merged via the queue into AvaloniaUI:master with commit a5277eb May 15, 2026
12 checks passed
MrJul pushed a commit to MrJul/Avalonia that referenced this pull request May 28, 2026
@MrJul MrJul added backported-12.0.x and removed backport-candidate-12.0.x Consider this PR for backporting to 12.0 branch labels May 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

When NumericUpDown.TextConverter is changed, the displayed text doesn't refresh automatically.

4 participants