private static void BindingScopeChanged(object target, InjectedPropertyChangedEventArgs e)
 {
     if (e.OldValue != null)
     {
         ((IBindingScope)e.OldValue).Clear();
     }
 }
 private static void DataContextChanged(object target, InjectedPropertyChangedEventArgs e)
 {
     if (e.NewValue != null)
     {
         // bind "target" to new value
         // target.Bind(e.NewValue, --template--)
         
         // how do we get the binding information for "target" in an easy manner
         // in xaml this would be defined in the view.  perhaps we do the same
         // by either using attributes on target or having the view register
         // perhaps the view can register define a way of binding
     }
 }
Ejemplo n.º 3
0
 public static void TestPropertyChanged(object target, InjectedPropertyChangedEventArgs e)
 {
 }
Ejemplo n.º 4
0
 public static void TestPropertyChanged(object target, InjectedPropertyChangedEventArgs e)
 {
     OnChangedCalled = true;
 }