I am populating my list view with data I get from a JSON call. I get a name and a corresponding id. I populate the list view with the names as follows.
listView.ItemTemplate.SetBinding(TextCell.TextProperty, "Name");
Now What I want to do with the id is something like
listView.ItemTemplate.SetBinding(TextCell.Id, "NameId");
where the id is hidden from the user.
And do something like the following when an item is clicked get the id
listView.ItemTapped += (sender, e) => {
System.Diagnostics.Debug.WriteLine(e.item.Id );
};
Any ideas on how I can accomplish this?``