public static BindingObserver Subscribe <T>(DependencyObject source, string propertyPath, Action <T> onNext) { Bndng binding = new Bndng(propertyPath) { Source = source }; return(Subscribe <T>(binding, onNext)); }
public static BindingObserver Subscribe(DependencyObject source, string propertyPath, Action onChanged) { Bndng binding = new Bndng(propertyPath) { Source = source }; return(Subscribe(binding, onChanged)); }
public static BindingObserver Subscribe(Bndng binding, Action onChanged) { BindingObserver observer1 = new BindingObserver(binding); observer1.Changed += delegate(object <p0>, EventArgs <p1>) { onChanged.Invoke(); }; return(observer1); }
public static BindingObserver Subscribe <T>(Bndng binding, Action <T> onNext) { BindingObserver observer = new BindingObserver(binding); observer.Changed += delegate(object <p0>, EventArgs <p1>) { onNext((T)observer.Value); }; return(observer); }
public BindingObserver(Bndng binding) { throw new Exception(); }