Skip to content

Conversation

glennawatson
Copy link
Contributor

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.

@glennawatson glennawatson requested review from a team January 16, 2019 07:31
elipriaulx
elipriaulx previously approved these changes Jan 16, 2019
Copy link
Contributor

@elipriaulx elipriaulx left a 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.

RLittlesII
RLittlesII previously approved these changes Jan 16, 2019
worldbeater
worldbeater previously approved these changes Jan 16, 2019
@glennawatson glennawatson dismissed stale reviews from worldbeater and RLittlesII via e344775 January 16, 2019 18:40
@codecov
Copy link

codecov bot commented Jan 16, 2019

Codecov Report

❗ No coverage uploaded for pull request base (master@a244d76). Click here to learn what that means.
The diff coverage is 45%.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #1906   +/-   ##
=========================================
  Coverage          ?   66.67%           
=========================================
  Files             ?      110           
  Lines             ?     4372           
  Branches          ?      578           
=========================================
  Hits              ?     2915           
  Misses            ?     1287           
  Partials          ?      170
Impacted Files Coverage Δ
src/ReactiveUI.Wpf/TransitioningContentControl.cs 9.32% <0%> (ø)
...orms/windows-common/AutoDataTemplateBindingHook.cs 83.33% <100%> (ø)
src/ReactiveUI/View/DefaultViewLocator.cs 96.77% <100%> (ø)
...atforms/windows-common/ActivationForViewFetcher.cs 85% <100%> (ø)
...veUI/Platforms/windows-common/ViewModelViewHost.cs 10.16% <21.73%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a244d76...e344775. Read the comment docs.

@glennawatson glennawatson merged commit 781cea9 into master Jan 16, 2019
@delete-merged-branch delete-merged-branch bot deleted the glennawatson-combobox-fix branch January 16, 2019 19:33
glennawatson added a commit that referenced this pull request Mar 23, 2019
 
fix: Combobox not updating when using Bind() generated ViewModelViewHost (#1906)
@lock lock bot locked and limited conversation to collaborators Jun 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG] View Location does not set ComboBox.SelectionBoxItemTemplate
4 participants