0
你好MVVMCross社區,MVVMCross ValueConverter參數
我的問題是關於ValueConverter
的S參數:
有沒有辦法給一個變量傳遞給值轉換器,而不是一個恆定值作爲ConverterParameter
?
喜歡的東西:
<EditText
android:id="@+id/editPrice"
...
local:MvxBind="Text Price; Enabled IsPriceEnabled; BackgroundColor IsPriceEnabled, Converter=Enabled2MvxColor, ConverterParameter=Price"/>
甚至通過例如整個對象:
<EditText
android:id="@+id/editPrice"
...
local:MvxBind="Text Price; Enabled IsPriceEnabled; BackgroundColor IsPriceEnabled, Converter=Enabled2MvxColor, ConverterParameter=editPrice"/>
TIA,