See the second option in the MVVMCross answer , changing the ViewModel to an MvxBindableListView - this is one way to do this.
Using this approach, you will open a list of objects such as:
public class Wrapped { public ICommand GoThruCommand { get; set; } public ICommand OpenCommand { get; set; } public string Name { get; set; } }
and you should use the axml list template with related controls, for example:
<TextView ... local:MvxBind="{'Text':{'Path':'Name'}}" /> <Button ... local:MvxBind="{'Click':{'Path':'GoCommand'}}" /> <Button ... local:MvxBind="{'Click':{'Path':'ThruCommand'}}" />
If you have any suggestions / requests regarding a relative source in mvx, add them to https://github.com/slodge/MvvmCross/issues/35
Stuart
source share