I am using MvxBindableListView
to bind a List<>
of data objects to a ListView
. The layout I am using for the rows has several TextView
s. I am successfully binding the Text
property for each of these to a property in my data object, but I have found that I cannot bind to TextColor
as that property does not exist in Mono For Android TextView
s; instead you have use the SetTextColor()
method. So how can I bind a data object property to a method?! Below is the code I tried to use:
<TextView
android:id="@+id/MyValueTextView"
android:layout_width="50dp"
android:layout_height="20dp"
android:layout_gravity="right"
android:gravity="center_vertical|right"
android:textSize="12sp"
local:MvxBind="
{
'Text':{'Path':'MyValue','Converter':'MyValueConverter'},
'TextColor':{'Path':'MyOtherValue','Converter':'MyOtherConverter'}
}" />