예제 #1
0
        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;
        }
예제 #2
0
 protected virtual void UnBindProperty <T>(string propName, OnValueChangedHandler <T> handler)
 {
     ViewMgr.Instance.UnBindProperty <T>(this, propName, handler);
 }
예제 #3
0
        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;
        }