Skip to content

Conversation

@Koichi-Kobayashi
Copy link
Contributor

Pull request type

  • Update
  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes

What is the current behavior?

When binding to the Value of a NumberBox, there was a delay in value propagation after keyboard input.

Issue Number: #945

What is the new behavior?

When NumberBox Value property is bound to a ViewModel, the ViewModel
was not updated when focus was lost after text input. This was because
SetCurrentValue() does not trigger binding source updates.

Fixed by explicitly calling UpdateSource() in OnLostFocus() after
ValidateInput() when the value has changed.

Fixes issue where Text and Value properties updated correctly but
ViewModel retained the previous value.

Other information

2025-12-14_12h48_02

When NumberBox Value property is bound to a ViewModel, the ViewModel
was not updated when focus was lost after text input. This was because
SetCurrentValue() does not trigger binding source updates.

Fixed by explicitly calling UpdateSource() in OnLostFocus() after
ValidateInput() when the value has changed.

Fixes issue where Text and Value properties updated correctly but
ViewModel retained the previous value.
@github-actions github-actions bot added controls Changes to the appearance or logic of custom controls. PR Pull request dotnet release labels Dec 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

controls Changes to the appearance or logic of custom controls. dotnet PR Pull request release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant