我正在尝试在TwoWay模式下绑定MvxBindableListView,以便在ViewModel中设置它的值时通过Buttons的Click命令在View中更新.目前它只在布局在start/tabchange完全加载时更新...
该视图模型是:
public List<MyType> TestList
{
get { return _testList; }
set
{
_testList = value;
FirePropertyChanged("TestList");
}
}
Run Code Online (Sandbox Code Playgroud)
View中的.axml 是:
<Mvx.MvxBindableListView
android:layout_width="fill_parent"
android:layout_height="fill_parent"
local:MvxBind="{'ItemsSource':{'Path':'TestList','Mode':'TwoWay'}}"
local:MvxItemTemplate="@layout/my_item_layout" />
Run Code Online (Sandbox Code Playgroud) android mvvm inotifycollectionchanged xamarin.android mvvmcross