I have a ContentPage showing some messages, I wish for the page title to dynamically reflect the number of unread messages e.g. 'Messages (5)' indicating the user has 5 unread messages (a useful indicator as the unread messages may have fallen off the bottom of the view)
I was hoping to do something like this:
MyContentPage.BindingContext=App.Instance.ViewModel; MyContentPage.SetBinding(ContentPage.TitleProperty,"UnReadMsgs");
but there appears to be no ContentPage.TitleProperty.
I tried using OnAppearing which is of limited success as the Messages can be updated without the page being reloaded
Would love to have some suggestions on how I can create this functionality in Xamarin Forms