public void BindInnerText <T>(BindPropertyOptions <T, string> options) where T : class, INotifyPropertyChanged { UnbindInnerText(); BindOptions(options); _innerTextBinding = options; }
private void UnbindOptions(BindPropertyOptions options) { options.Unsubscribe(); options.PropertyChanged -= Options_PropertyChanged; }
private void BindOptions(BindPropertyOptions options) { options.Apply(_parent); options.PropertyChanged += Options_PropertyChanged; options.Subscribe(); }
private void StoreBinding(string key, BindPropertyOptions options) { UnbindAttribute(key); BindOptions(options); _attributeBindings.Add(key, options); }