コード例 #1
0
 private static void BindingScopeChanged(object target, InjectedPropertyChangedEventArgs e)
 {
     if (e.OldValue != null)
     {
         ((IBindingScope)e.OldValue).Clear();
     }
 }
コード例 #2
0
 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
     }
 }
コード例 #3
0
ファイル: Test2Property.cs プロジェクト: sgmunn/Mobile.Mvvm
 public static void TestPropertyChanged(object target, InjectedPropertyChangedEventArgs e)
 {
 }
コード例 #4
0
ファイル: TestProperty.cs プロジェクト: sgmunn/Mobile.Mvvm
 public static void TestPropertyChanged(object target, InjectedPropertyChangedEventArgs e)
 {
     OnChangedCalled = true;
 }