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

Use interfaces instead of implementations #139

Merged
merged 3 commits into from
Sep 30, 2024

Conversation

bdovaz
Copy link

@bdovaz bdovaz commented Sep 20, 2024

@LuckyDucko In my case for MVVM I use: https://learn.microsoft.com/en-us/dotnet/communitytoolkit/mvvm/

Using this library forces me to have to implement IPopupViewModel instead of using PopupViewModel directly (because of duplicated INotifyPropertyChanged implementations). This is not a problem, I have looked at how you implement it and I implement it the same way.

The problem comes from:

  • The constraint of GenericViewModel with BasePopupViewModel.
  • The contstraint of IPreBakedMopupService with BasePopupViewModel and PopupViewModel

And that is precisely what I have solved with this PR.

@bdovaz
Copy link
Author

bdovaz commented Sep 27, 2024

@LuckyDucko please, can you merge and release a new version? Thanks!

Copy link
Owner

@LuckyDucko LuckyDucko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This completely slipped my mind, @bdovaz thanks for the update.

@LuckyDucko LuckyDucko merged commit b5fb645 into LuckyDucko:master Sep 30, 2024
@bdovaz bdovaz deleted the use-interface branch September 30, 2024 04:45
@bdovaz
Copy link
Author

bdovaz commented Sep 30, 2024

@LuckyDucko Ok ,thanks! Release a new version please, it's blocking us.

@bdovaz bdovaz mentioned this pull request Sep 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants