Hello, I use binding on the text of a button. But when I change the string after the view is displayed, the text button does not change. Did I have to put an invalidate view instruction ? Thank you, cjacquel
@ChristopheJacquelin : Please refer this link: https://stackoverflow.com/questions/32667408/how-to-implement-inotifypropertychanged-in-xamarin-forms
If you have "set" property in your viewmodel for that button, then implement OnPropertyChanged derived from INotifyPropertyChanged Interface.
If you're not sure how to do it, then you might visit this blog @cjacquel
https://deanilvincent.github.io/2017/07/03/simple-weather-app-in-xamarin-forms-with-mvvm-using-weather-api-part2/
Go: 8.0 Implementing INotifyPropertyChanged
Posts
Do you use INPC?
@ChristopheJacquelin :
Please refer this link: https://stackoverflow.com/questions/32667408/how-to-implement-inotifypropertychanged-in-xamarin-forms
If you have "set" property in your viewmodel for that button, then implement OnPropertyChanged derived from INotifyPropertyChanged Interface.
If you're not sure how to do it, then you might visit this blog @cjacquel
https://deanilvincent.github.io/2017/07/03/simple-weather-app-in-xamarin-forms-with-mvvm-using-weather-api-part2/
Go: 8.0 Implementing INotifyPropertyChanged