Esempio n. 1
0
        public static BindingObserver Subscribe <T>(DependencyObject source, string propertyPath, Action <T> onNext)
        {
            Bndng binding = new Bndng(propertyPath)
            {
                Source = source
            };

            return(Subscribe <T>(binding, onNext));
        }
Esempio n. 2
0
        public static BindingObserver Subscribe(DependencyObject source, string propertyPath, Action onChanged)
        {
            Bndng binding = new Bndng(propertyPath)
            {
                Source = source
            };

            return(Subscribe(binding, onChanged));
        }
Esempio n. 3
0
        public static BindingObserver Subscribe(Bndng binding, Action onChanged)
        {
            BindingObserver observer1 = new BindingObserver(binding);

            observer1.Changed += delegate(object <p0>, EventArgs <p1>) {
                onChanged.Invoke();
            };
            return(observer1);
        }
Esempio n. 4
0
        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);
        }
Esempio n. 5
0
 public BindingObserver(Bndng binding)
 {
     throw new Exception();
 }