Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Cannot BindWithValidation on ComboBox.SelectedValue #3921

Open
Nextra opened this issue Oct 9, 2024 · 2 comments
Open

[Bug]: Cannot BindWithValidation on ComboBox.SelectedValue #3921

Nextra opened this issue Oct 9, 2024 · 2 comments
Labels

Comments

@Nextra
Copy link

Nextra commented Oct 9, 2024

Describe the bug 🐞

The new BindWithValidation for WPF (introduced in #3874) is not able to bind to ComboBox.SelectedValue.

Instead, an Exception is thrown:

System.ArgumentException: 'Dependency property not found on Object'

Step to reproduce

  1. Clone reproduction repository
  2. Start the application

Reproduction repository

https://github.com/Nextra/ReactiveUIBindWithValidationBug

Expected behavior

BindWithValidation should work on ComboBox.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

@Nextra Nextra added the bug label Oct 9, 2024
@ChrisPulman
Copy link
Member

Thank you for raising this, I will try to resolve this as soon as possible. List controls have always been a sticky issue for binding.

@Nextra
Copy link
Author

Nextra commented Oct 10, 2024

Thank you.

If I might add, the BindWithValidation extension should also have nullable annotations to match the others.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants