Skip to content

ListBox does not update when source changes #5838

Answered by maxkatz6
frazchaudhry asked this question in Q&A
Discussion options

You must be logged in to vote

If I understood your problem, you need to implement INotifyPropertyChanged on Friend class.

In WPF it works most likely because of its "hidden aspect" with implicit property changed notifications:
https://social.msdn.microsoft.com/Forums/vstudio/en-US/9365bb6a-b411-4967-9a03-ae2a810fb215/data-binding-without-inotifypropertychanged?forum=wpf
Which isn't the best way of doing bindings because of possible memory leaks:
https://stackoverflow.com/questions/18542940/can-bindings-create-memory-leaks-in-wpf

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@frazchaudhry
Comment options

Answer selected by frazchaudhry
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants