public void UnBindProperty <T>(IZView view, string propName, OnValueChangedHandler <T> handler) { if (!viewDic.ContainsKey(view)) { return; } var prop = viewDic[view].ViewModel.GetType().GetProperty(propName) as PropertyBase <T>; prop.valueChangeEvent -= handler; }
protected virtual void UnBindProperty <T>(string propName, OnValueChangedHandler <T> handler) { ViewMgr.Instance.UnBindProperty <T>(this, propName, handler); }
public void BindProperty <T>(IZView view, string propName, OnValueChangedHandler <T> handler) { // if (!viewDic.ContainsKey(view)) return; // var prop = viewDic[view].ViewModel.GetType().GetProperty(propName) as PropertyBase<T>; // prop.ValueChangedChangeEvent += handler; }