Reusing view models when adding/deleting through an undo system in wpf
I have a question about best practices when adding/deleting through an undo system. I have a VM (let's call it A) that holds a list of other VMs (let's call the view model type B). This list is exposed to the view and is shown in a list view where the user can add/delete at will. When I'm adding a new element in that list, I update the model and create a new view model for that model, same for deleting through an undo system that uses the command pattern. I created a reusable VM (let's call it C) that I use when I need renaming for a field and when a rename happens, it invokes an action that's
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.