i want to combine these 2 properties:
set.Bind(myObject).For("Visibility").To(vm => vm.property1).WithConversion("Visibility");
set.Bind(myObject).For("Visibility").To(vm => vm.property2).WithConversion("Visibility");
I read something like this for Android
local:MvxBind="Visibility Visibility(And(property1, property2))"
But don't know how to translate to fluent, how can i do?
There are at least two ways to do it:
and
In the second example the register of
And
keyword is important.Both options give the same result:
textField
will be hidden only if bothproperty1
andproperty2
are equaltrue