You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
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();
withHomeBadgeText
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 ofHomeBadgeText
to'0'
and then update it after the data has been fetched the binding works as expected.The text was updated successfully, but these errors were encountered: