-
Notifications
You must be signed in to change notification settings - Fork 1.9k
MVVM binding doen't work properly for int types #8342
Copy link
Copy link
Open
Labels
area-xamlXAML, CSS, Triggers, BehaviorsXAML, CSS, Triggers, Behaviorsplatform/androidplatform/windowss/triagedIssue has been reviewedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering TriageVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't workingSomething isn't working
Milestone
Metadata
Metadata
Assignees
Labels
area-xamlXAML, CSS, Triggers, BehaviorsXAML, CSS, Triggers, Behaviorsplatform/androidplatform/windowss/triagedIssue has been reviewedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering TriageVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't workingSomething isn't working
Type
Fields
Give feedbackNo fields configured for issues without a type.
Description
When we bind int property. It works fine as long as there is at least one digit. If we remove value by back space. Even though there are no digits, it shows the first digit of last entered value
Steps to Reproduce
Create Maui APP
Add View model with one int property
Add Entry and a lable in XML file
Bind the property to lable and entry
enter any number ex: 456
Press back space and remove all the digits
Bug: The entry shows no digits as expected but the property holds first digit (ex: 4 in the previous number) and it displays the same in the label
Version with bug
6.0 Release Candidate 2 or older
Last version that worked well
Unknown/Other
Affected platforms
Android, Windows, I was not able test on other platforms
Affected platform versions
All
Did you find any workaround?
No
Relevant log output
No response