Make text in NumericUpDown update immediately when changing the TextC… by cdytoby · Pull Request #21320 · AvaloniaUI/Avalonia (original) (raw)
…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
- Added unit tests (if possible)?
- Added XML documentation to any related classes?
- Consider submitting a PR to https://github.com/AvaloniaUI/avalonia-docs with user documentation