-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
fix: Combobox not updating when using Bind() generated ViewModelViewHost #1906
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Your extra clean up made this way easier to read.
Co-Authored-By: glennawatson <[email protected]>
Co-Authored-By: glennawatson <[email protected]>
Co-Authored-By: glennawatson <[email protected]>
e344775
Codecov Report
@@ Coverage Diff @@
## master #1906 +/- ##
=========================================
Coverage ? 66.67%
=========================================
Files ? 110
Lines ? 4372
Branches ? 578
=========================================
Hits ? 2915
Misses ? 1287
Partials ? 170
Continue to review full report at Codecov.
|
What kind of change does this PR introduce? (Bug fix, feature, docs update, ...)
This fixes #1905 -- where a combobox does not correctly update in WPF if the combobox item is selected.
What is the current behavior? (You can also link to an open issue here)
The boxes remain empty.
What is the new behavior (if this is a feature change)?
Due to the fact Combobox item's are cloned when they become the main view item, WhenActivated events wouldn't be fired correctly. Now also include "IsHitTestEnabled" in the list of included events we monitor.
Also changed so the ViewModelViewHost doesn't rely on the RxUI binding which can potentially give some performance boosts but also might reduce memory leak potential.
What might this PR break?
Hopefully nothing.