Exemple #1
0
 public ViewDataBindingsHolder(View rootView, ViewModelBase viewModel, LayoutInflater layoutInflater, string idPrefix)
 {
     this.viewModel = viewModel;
     bindings       = new ViewDataBindings(rootView, viewModel, layoutInflater, idPrefix);
     bindings.EnsureCommandBindings();  // Then add any command bindings that were not specified in code (based on the Id naming convention)
     AddHandlers();
     viewModel.RaisePropertiesChanged();
 }
Exemple #2
0
 /// <summary>
 /// Override this method in a derived adapter class to change how a data-bound value is set for specific views
 /// </summary>
 /// <param name="view"></param>
 /// <param name="value"></param>
 protected virtual void UpdateView(View view, object value)
 {
     if (viewExtensionPoints != null)
     {
         viewExtensionPoints.UpdateView(view, value);
     }
     else
     {
         ViewDataBindings.UpdateView(view, value);
     }
 }