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); } }
public virtual void OnViewModelChanged(Binding.ViewModel newValue) { Binder.Unbind(); Binder.Bind(newValue); }