Skip to content

MVVM binding doen't work properly for int types #8342

@jballa1

Description

@jballa1

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-xamlXAML, CSS, Triggers, Behaviorsplatform/androidplatform/windowss/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions