Delete triggering ModelPropertyChanged for BusinessListBase but not BusinessBindingListBase in Blazor #2951
Unanswered
michaelcsikos
asked this question in
Questions
Replies: 1 comment 2 replies
-
I created issue #2954 for this, as I suppose there should be feature parity - or at least it is worth considering. Regarding wrapping each domain object with a viewmodel, yes, probably. I'm becoming increasingly frustrated with MVVM outside the XAML world, as it seems to add complexity. I haven't found something better yet, but it feels like there should be a better option. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have two collections, one inherits from
BusinessListBase
, and the other fromBusinessBindingListBase
. Each collection is wrapped in aViewModel<T>
. ThePropertyChangedEventHandler
from the root edit page is passed down to all the children:In the collection
ViewModel
, child items are deleted like this:For the
BusinessListBase
deleting a child item triggersPropertyChanged
, it bubbles up to the root edit page and the Save button becomes enabled, but it's not bubbling up for theBusinessBindingListBase
. Ordinarily I would just useBusinessListBase
to solve it, but we have some classes which are used in WinForms as well.Am I approaching this correctly, i.e. making a VM to wrap each collection, and a VM to wrap each child item, and passing
PropertyChangedEventHandler
down?Beta Was this translation helpful? Give feedback.
All reactions