I'm using MVVMCross/Xamarin in my iOS application. I have ViewModel with property defined like this:
public readonly INC<Address> Entity = new NC<Address>();
where
public class Address
{
public string Line1 { get; set; }
public string Line2 { get; set; }
public string Line3 { get; set; }
//other properties...
}
If I do binding this way, it works:
set.Bind(Line1Text).To("Entity.Line1").TwoWay();
If I do binding this way, it doesn't work and outputs warning (see below):
set.Bind(Line1Text).To(vm => vm.Entity.Value.Line1).TwoWay();
The error I get is that binding is not constructed. The warning from application output:
2014-10-08 19:12:15.341 IosTemplate[8442:248933] MvxBind: Warning: 12.63 Unable to bind: source property source not found Property:Value on Address
Please advise, how to do a binding with INC/NC with lambda expression way.