コード例 #1
0
        protected virtual void HandleData(object data)
        {
            if (data is Binding.ViewModel)
            {
                ViewModel = data as Binding.ViewModel;
            }
            else if (data is IDictionary)
            {
                if (ViewModel == null)
                {
                    ViewModel = defultViewModel;
                }

                LoadPropDictionary(data as IDictionary);
            }
        }
コード例 #2
0
 public virtual void OnViewModelChanged(Binding.ViewModel newValue)
 {
     Binder.Unbind();
     Binder.Bind(newValue);
 }