Skip to content

Fix 3921 Support inherited DependencyProperty lookup#4350

Merged
ChrisPulman merged 1 commit intomainfrom
Chris_fix-issue-3921
May 4, 2026
Merged

Fix 3921 Support inherited DependencyProperty lookup#4350
ChrisPulman merged 1 commit intomainfrom
Chris_fix-issue-3921

Conversation

@ChrisPulman
Copy link
Copy Markdown
Member

What kind of change does this PR introduce?

Fix

What is the current behavior?

Closes #3921

What is the new behavior?

Use DependencyPropertyDescriptor.FromName to resolve dependency properties declared on base control types (via DependencyObjectType.SystemType) and return the descriptor's DependencyProperty when found; fall back to existing enumeration otherwise.

Add System.ComponentModel using and unit tests covering inherited property lookup (Selector.SelectedValue, TextBoxBase.IsReadOnly) and a BindWithValidation test for ComboBox.SelectedValue, plus a small TestViewWithComboBox and SelectedValue on the test view model.

What might this PR break?

Checklist

  • I have read the Contribute guide
  • Tests have been added or updated (for bug fixes / features)
  • Docs have been added or updated (for bug fixes / features)
  • Changes target the main branch
  • PR title follows Conventional Commits

Additional information

Use DependencyPropertyDescriptor.FromName to resolve dependency properties declared on base control types (via DependencyObjectType.SystemType) and return the descriptor's DependencyProperty when found; fall back to existing enumeration otherwise. Add System.ComponentModel using and unit tests covering inherited property lookup (Selector.SelectedValue, TextBoxBase.IsReadOnly) and a BindWithValidation test for ComboBox.SelectedValue, plus a small TestViewWithComboBox and SelectedValue on the test view model.
@codecov
Copy link
Copy Markdown

codecov Bot commented May 4, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 89.85%. Comparing base (03ccb2e) to head (49168f2).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4350      +/-   ##
==========================================
+ Coverage   89.67%   89.85%   +0.18%     
==========================================
  Files         253      253              
  Lines        9633     9638       +5     
  Branches     1473     1475       +2     
==========================================
+ Hits         8638     8660      +22     
+ Misses        753      734      -19     
- Partials      242      244       +2     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@ChrisPulman ChrisPulman merged commit 79661cf into main May 4, 2026
10 checks passed
@ChrisPulman ChrisPulman deleted the Chris_fix-issue-3921 branch May 4, 2026 10:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Cannot BindWithValidation on ComboBox.SelectedValue

2 participants