You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attempting to bind for instance a GridControl or TreeListControl's SelectedItem property through the ReactiveUI preferred way of setting up bindings, it does not work:
Step to reproduce
This issue occurs because the Reactive UI framework supports notifications raised by the INotifyPropertyChanged interface. Unlike the standard WPF ListBox element, our GridControl implements the INotifyPropertyChanged interface. Reactive UI's binding mechanism determines this fact and tries to handle the PropertyChanged event for all properties. However, it seems not to take into account that this event can be raised for dependency properties as well. As a result, when GridControl's SelectedItem property is changed, Reactive UI's binding mechanism catches the PropertyChanged event for this property and tries to work with it as with a simple property but not as with DependencyProperty and doesn't update bindings.
By the way, you can easily check this scenario with the standard WPF ListBox element. It's enough to create a ListBox class descendant, which implements the INotifyPropertyChanged interface:
Describe the bug 🐞
When attempting to bind for instance a GridControl or TreeListControl's SelectedItem property through the ReactiveUI preferred way of setting up bindings, it does not work:
Step to reproduce
This issue occurs because the Reactive UI framework supports notifications raised by the INotifyPropertyChanged interface. Unlike the standard WPF ListBox element, our GridControl implements the INotifyPropertyChanged interface. Reactive UI's binding mechanism determines this fact and tries to handle the PropertyChanged event for all properties. However, it seems not to take into account that this event can be raised for dependency properties as well. As a result, when GridControl's SelectedItem property is changed, Reactive UI's binding mechanism catches the PropertyChanged event for this property and tries to work with it as with a simple property but not as with DependencyProperty and doesn't update bindings.
By the way, you can easily check this scenario with the standard WPF ListBox element. It's enough to create a ListBox class descendant, which implements the INotifyPropertyChanged interface:
Reproduction repository
https://github.com/reactiveui/ReactiveUI
Expected behavior
about:
https://supportcenter.devexpress.com/ticket/details/t728347/devexpress-and-reactiveui
Screenshots 🖼️
No response
IDE
No response
Operating system
No response
Version
No response
Device
No response
ReactiveUI Version
No response
Additional information ℹ️
No response
The text was updated successfully, but these errors were encountered: