Skip to content

fix: DataBindings.Remove/Clear unsubscribe from the INotifyPropertyChanged.PropertyChanged event#1963

Merged
RussKie merged 1 commit into
dotnet:masterfrom
RussKie:fix_1679_DataBindings.Remove_unsubscribe_from_the_INotifyPropertyChanged.PropertyChanged_event
Sep 24, 2019
Merged

fix: DataBindings.Remove/Clear unsubscribe from the INotifyPropertyChanged.PropertyChanged event#1963
RussKie merged 1 commit into
dotnet:masterfrom
RussKie:fix_1679_DataBindings.Remove_unsubscribe_from_the_INotifyPropertyChanged.PropertyChanged_event

Conversation

@RussKie
Copy link
Copy Markdown
Contributor

@RussKie RussKie commented Sep 24, 2019

Fixes #1679
(cherry picked from commit e04cb68)

A regression introduced in #854 that resulted in making use of target control owner's BindingManagerBase instead of using the target control's own.

Proposed changes

  • Restore the original behavior
  • Add tests

Customer Impact

  • Bindings operate as expected

Regression?

  • Yes

Risk

  • Low

Test methodology

  • manual
  • CTI
Microsoft Reviewers: Open in CodeFlow

…anged.PropertyChanged event

A regression introduced in dotnet#854 that caused bindings in the middle object
to remain after those were unwired in the target control.

Fixes dotnet#1679

(cherry picked from commit e04cb68)
@codecov
Copy link
Copy Markdown

codecov Bot commented Sep 24, 2019

Codecov Report

Merging #1963 into master will decrease coverage by 0.00602%.
The diff coverage is 14.28571%.

@@                Coverage Diff                 @@
##              master      #1963         +/-   ##
==================================================
- Coverage   27.29413%   27.2881%   -0.00603%     
==================================================
  Files            869        869                 
  Lines         266702     266706          +4     
  Branches       37907      37908          +1     
==================================================
- Hits           72794      72779         -15     
- Misses        188732     188758         +26     
+ Partials        5176       5169          -7
Flag Coverage Δ
#Debug 27.2881% <14.28571%> (-0.00603%) ⬇️
#production 27.2881% <14.28571%> (-0.00603%) ⬇️
#test 100% <ø> (ø) ⬆️

@RussKie RussKie merged commit e419fce into dotnet:master Sep 24, 2019
@RussKie RussKie deleted the fix_1679_DataBindings.Remove_unsubscribe_from_the_INotifyPropertyChanged.PropertyChanged_event branch September 24, 2019 09:57
@ghost ghost added this to the 5.0 milestone Sep 24, 2019
@ghost ghost locked as resolved and limited conversation to collaborators Feb 4, 2022
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.

control.DataBindings.Remove\Clear does not unsubscribe from the INotifyPropertyChanged.PropertyChanged event in the WinForms app.

1 participant