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
an ObservableCollectionExtended<T> to RadGridView.ItemSource (a control from Telerik suite),
a bool to TextBox.IsReadOnly (I did that for testing purposes).
It'd seem binding to a DependencyProperty inherited from a parent is the actual problem:
RadGridView.ItemSource is defined on a DataControl,
ComboBox.SelectedValue is defined on a Selector,
TextBox.IsReadOnly is defined on a TextBoxBase.
ValidationBindingWpf<T>.EnumerateDependencyProperties(object) uses MarkupWriter.GetMarkupObjectFor(object), which doesn't return those properties (but to be honest I got stuck trying to work out which properties it does).
Describe the bug 🐞
The new
BindWithValidation
for WPF (introduced in #3874) is not able to bind toComboBox.SelectedValue
.Instead, an Exception is thrown:
System.ArgumentException: 'Dependency property not found on Object'
Step to reproduce
Reproduction repository
https://github.com/Nextra/ReactiveUIBindWithValidationBug
Expected behavior
BindWithValidation
should work onComboBox.SelectedValue
Screenshots 🖼️
No response
IDE
Visual Studio 2022
Operating system
No response
Version
No response
Device
No response
ReactiveUI Version
20.1.63
Additional information ℹ️
No response
The text was updated successfully, but these errors were encountered: