Profile Page Not Binding Even Data loaded from API

Samir Alghazaly
1
Reputation point
I am new in Xamarin forms
and I am trying to build an app to load data from API and do some operations on this data
when I built the mainpage for showing profile data ,data already loaded from API but not bonded in the view
although when loading a list of items in a listview in the same view or another on it's bounded successfully
I am using MVVM
{count} votes
@KyleXu-MSFT Thanks alot for your kindly reply following are code parts
for ViewModel
and for the ContetntPage
for code behind
and for the BaseViewModel Class as follow
@Samir Alghazaly When you modify a field, it won't trigger "PropertyChanged". So modify the following code
to
Unfortunately it didn't work
I have added a new property StudentName and set it with the student name
and change the binding to it in the view
and also didn't work
@Samir Alghazaly I just copied your code into my test and everything works fine. Did you check if the property is null?
Now it's working fine thanks alot KyleWang
When I changed
To
it worked fine
Thanks for your cooperation
Sign in to comment