public override void ViewDidLoad() { SetupNavigationBar(); _source = new TasksTVS(TasksTable); SetBind(); base.ViewDidLoad(); _refreshControl = new MvxUIRefreshControl(); TasksTable.RegisterNibForCellReuse(TaskCellViewController.TaskNib, TaskCellViewController.TaskKey); TasksTable.Source = _source; TasksTable.AddSubview(_refreshControl); }
public override void ViewDidLoad() { base.ViewDidLoad(); _refreshControl = new MvxUIRefreshControl(); TasksTable.RegisterNibForCellReuse(TaskCell.Nib, TaskCell.Key); var source = new TasksTVS(TasksTable); TasksTable.Source = source; TasksTable.AddSubview(_refreshControl); var set = this.CreateBindingSet <TasksListView, TasksListViewModel>(); set.Bind(source).To(m => m.TaskCollection); set.Bind(source).For(v => v.SelectionChangedCommand).To(vm => vm.ShowTaskChangedView); set.Bind(_refreshControl).For(r => r.IsRefreshing).To(vm => vm.IsRefreshTaskCollection); set.Bind(_refreshControl).For(r => r.RefreshCommand).To(vm => vm.RefreshTaskCommand); set.Bind(NoInternetConnection).For(v => v.Hidden).To(vm => vm.IsNoInternetVisible); set.Apply(); }