public void Bind(ViewModel viewModel) { //Debug.Log("Bind:" + viewModel); this.viewModel = viewModel; if (viewModel != null && binders != null) { binders.Invoke(viewModel); viewModel.OnBinding(Context); } }
public virtual void OnBinding(IBindingContext context) { viewModel.OnBinding(context); }