-
Notifications
You must be signed in to change notification settings - Fork 75
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
Binding Issues on Xamarin forms #85
Comments
i also tried the implementation on your sample project and property is not detected any changes. see below; public class MasterTabbedPageViewModel : ViewModelBase, INotifyPropertyChanged
|
If you are binding to the TabbedPage ViewModel, you need to specify the source and path for the binding. In your first example, if your TabbedPage is named Tabs, then the binding would look like {Binding Source={x:Reference Tabs}, Path=BindingContext.Count}. If you don't set the source, then it is looking for Count in the binding context of Page1. |
i cant get this to work through binding. but static number works, see below my implementation
(xaml file)
<local:Page1
Title="My Page"
x:Name="Item1"
plugin:TabBadge.BadgeText="{Binding Count}"
plugin:TabBadge.BadgeColor="Red"
plugin:TabBadge.BadgeTextColor="White" />
(ViewModel)
public override void OnAppearing()
{
var result = await this.notificationService.GetNotificationCount();
this.Count = result.Count;
base.OnAppearing();
}
The text was updated successfully, but these errors were encountered: