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