protected override void OnVmChange() { vm = ViewModel as ListBindViewModel; dropdown.options = vm.DropdownData; Binding.RevertBind(dropdown, vm.SelectedDropDownIndex); Binding.BindViewList <ItemViewModel, ItemView>(vm.Items, ItemRoot); Binding.BindCommand(addBtn, vm.AddItem); Binding.BindCommand(deleteBtn, vm.DeleteSelectedItem); Binding.BindCommand(updateBtn, vm.UpdateItem); }
// Start is called before the first frame update private void Start() { vm = new ListBindViewModel(); pair_vm = new ListPairsBindViewModel(); }