What's the equivalent of DependencyPropertyDescriptor.AddValueChanged() ?
Posted: 17 Jan 2021, 04:09
I'm porting a library from WPF to Noesis, which requires other objects to be notified when property changes.
Welcome to our official discussion site. You’ll find topics on features, bugs, development, and general support here
https://www.noesisengine.com/forums/
public static readonly DependencyProperty ChangeListenerProperty = DependencyProperty.RegisterAttached(
"ChangeListener", typeof(object), typeof(PropertyHelper),
new PropertyMetadata(null, OnValueChanged));
private void OnValueChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
{
// your code here...
}
someTextBox.SetBinding(PropertyHelper.ChangeListenerProperty, new Binding(TextBox.TextProperty, someTextBox);