I'm creating a customized ViewCell. i.e:
public class ContributionItemCell : ViewCell
and I'm looking to change the value of a label based on the value of the item selected inside of the parent listview. i.e.:
Label Amount;
//This won't work, but this is what I am trying to figure out
if (selectedItem.Value == 0) //This won't work, but this is what I am trying to figure out
{
Amount= new Label
{
"Value One"
};
}
else
{
Amount= new Label
{
"Value Two"
};
}
I can't use BindingContext because the OnBindingContextChanged won't have fired yet.
Any thoughts? Thanks.