Skip to content
New issue

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

Badge does not bind correctly if starting off with a <null> value #78

Open
morbidcamel101 opened this issue Nov 5, 2019 · 1 comment
Labels
bug pr welcome A pull request adressing the issue is welcome
Milestone

Comments

@morbidcamel101
Copy link

morbidcamel101 commented Nov 5, 2019

In my scenario I have a few tabs that I want to slap badges on, but only after I have fetched the data using an asynchronous dependency service. I fetch the data and then set the bindatbe property to something like this
_viewModel.HomeBadgeText = items.Count.ToString(); with HomeBadgeText being my binding in the XAML file. If I do this with an initial <null> value the badge never updates, HOWEVER, if I set the initial value of HomeBadgeText to '0' and then update it after the data has been fetched the binding works as expected.

@arhiggi3
Copy link

arhiggi3 commented Nov 5, 2019

I have this problem as well but only on Android. Someone on my team claims that it works on earlier android versions but it definitely isn't working for me on a 9 device.

EDIT: My workaround is to default the text to string.Empty instead of null. string.Empty will hide the badge.

@xabre xabre added the bug label Nov 29, 2019
@xabre xabre added this to the 2.3.0 milestone Mar 7, 2020
@xabre xabre added the pr welcome A pull request adressing the issue is welcome label Jun 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug pr welcome A pull request adressing the issue is welcome
Projects
None yet
Development

No branches or pull requests

3 participants