Hi,
I have the following json output:
[
{
"user_id": "1",
"user_name": "John Mathews",
"is_active": "1",
"country_code": "US"
}
]
my class:
class CreditData
{
public string user_id { get; set; }
public string user_name { get; set; }
public string country_code { get; set; }
}
and I am trying the BindableLayout for the first time.
I set the binding to the Grid this way:
var data = JsonSerializer.Deserialize<ObservableCollection<CreditData>>(result);
also tried:
List<CreditData> data = JsonSerializer.Deserialize<List<CreditData>>(result);
In XAML, I am setting the value:
<Label Text="{Binding user_name}" />
but I am not getting any value, instead, I am getting:
MyApp.About+CeditsData
I don't have this issue when I bind to the ListView like this:
ListViewPendingApproval.IsVisible = true;
Kindly help...