Hey guys ,
I have a model that contains a birthday(1993-01-03) and gender (M , F)
public string bday { get; set; }
public string gender { get; set; }
I can use them in a listview xaml binding like this :
Text="{Binding gender}"
However , i need to process the model data before displaying it . Basically , i want a string that says "20M"
So i created a function in the model
public string getCustomString()
{
// do something
return "20M";
}
But how do i call it in the xaml binding ?
Text="{Binding getCustomString()}"
Any ideas ?