I use MvxBindableListView to bind List<> data objects to ListView . The layout I use for strings has multiple TextView s. I successfully bind the Text property for each of them to a property in my data object, but I found that I can not bind to TextColor , since this property does not exist in Mono for Android TextView s; instead, you use the SetTextColor() method. So how can I bind a property of a data object 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'} }" />
c # xamarin.android mvvmcross
Jason Steele May 22 '12 at 10:43 a.m. 2012-05-22 10:43
source share