We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When FormatString binding value is changed, the new format is applied only after focusing or interacting with the control.
Content of NumericUpDown changes accoring to the new format string immediately.
11.1.1
Windows 10
I believe that the problem is in SyncTextAndValueProperties call in OnFormatStringChanged. The call should set forceTextUpdate=true, ie.
SyncTextAndValueProperties
OnFormatStringChanged
forceTextUpdate=true
protected virtual void OnFormatStringChanged(string? oldValue, string? newValue) { if (IsInitialized) { SyncTextAndValueProperties(false, null, true); } }
The text was updated successfully, but these errors were encountered:
Created PR #16575 with proposed fix.
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Describe the bug
When FormatString binding value is changed, the new format is applied only after focusing or interacting with the control.
To Reproduce
Expected behavior
Content of NumericUpDown changes accoring to the new format string immediately.
Avalonia version
11.1.1
OS
Windows 10
Additional context
I believe that the problem is in
SyncTextAndValueProperties
call inOnFormatStringChanged
.The call should set
forceTextUpdate=true
, ie.The text was updated successfully, but these errors were encountered: