Skip to content
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

ObservableDictionary Support #1421

Open
vaecors opened this issue Sep 10, 2019 · 4 comments

Comments

@vaecors
Copy link
Contributor

commented Sep 10, 2019

IF YOU DON'T ANSWER THIS TEMPLATE - THE BOT WILL AUTOMATICALLY CLOSE YOUR ISSUE!

Summary

Introduces a new type of Dictionary that implements INotifyCollectionChanged and INotifyPropertyChanged.

API Changes

  • Implement ObservableCollection in Catel.MVVM
  • Create Approval Tests for ObservableCollection
  • Create Unit Tests for ObservableCollection

Intended Use Case

Useful for scenarios such as ComboBox controls that utilize Dictionaries as an item source but require the flexibility of adding, updating and removing items based on business logic within a ViewModel or Service.

As a final note, we actually already have this implementation completed as we utilize it for our in-house applications that are built on-top of Catel. The purpose is to share the feature to other users of the framework who may need it.

@GeertvanHorrik

This comment has been minimized.

Copy link
Member

commented Sep 10, 2019

Nice, would love to see this in the framework.

@GeertvanHorrik GeertvanHorrik added this to the 5.12.0 milestone Sep 10, 2019

@GeertvanHorrik GeertvanHorrik self-assigned this Sep 10, 2019

@vaecors

This comment has been minimized.

Copy link
Contributor Author

commented Sep 10, 2019

Great, we'll allocate some time to get this into a PR.

@vaecors

This comment has been minimized.

Copy link
Contributor Author

commented Sep 12, 2019

Just an additional note there will also be the addition of ToObservableDictionary extension methods to allow short-hand instantiation. I failed to mention that in the beginning.

@GeertvanHorrik

This comment has been minimized.

Copy link
Member

commented Sep 12, 2019

Great, I'd love to see that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.