Exemplo n.º 1
0
        public EditTextViewTextBinding(KXObservable observable, TextView textView)
        {
            _observable = observable;
            _textView = textView;

            _subscription = observable.Subscribe();
            _subscription.OnChange = OnModelChange;
            textView.AfterTextChanged += OnViewChange;
        }
Exemplo n.º 2
0
 public TextViewTextBinding(KXObservable observable, TextView textView)
 {
     _subscription = observable.Subscribe();
     _subscription.OnChange = value => textView.Text = value;
 }