小编ale*_*ass的帖子

如何在MvxListView中的MvxListView中绑定ItemClick

在下面的示例中,我想将ItemClick命令绑定到MvxListView中的Item.在这里,我在ViewModel中有一个包含Dog列表的Person列表.

的ItemsSource HasDogs结合工作正常.

当MvvmCross尝试将ItemClick SelectDogCommand绑定到Viewmodel 中的ICommand时,我得到此异常.

[0:] 
MvxBind:Warning: 11,30 Unable to bind: source property source not found Property:SelectDogCommand on Person
[0:] MvxBind:Warning: 11,30 Unable to bind: source property source not found Property:SelectDogCommand on Person
12-04 15:05:03.062 I/mono-stdout(16338): MvxBind:Warning: 11,30 Unable to bind: source property source not found Property:SelectDogCommand on Person
Run Code Online (Sandbox Code Playgroud)

希望你能帮忙.

这是我的例子:

public class FirstViewModel:MvxViewModel
{
    private List<Person> _persons;
    public List<Person> Persons
    {
      get { return _persons; }
      set …
Run Code Online (Sandbox Code Playgroud)

xamarin.android mvvmcross xamarin

7
推荐指数
1
解决办法
3125
查看次数

标签 统计

mvvmcross ×1

xamarin ×1

xamarin.android ×1