I have a DataGrid with a row for each entry in a collection. Each entry has a "Delete" button (in a DataGridTemplateColumn). I have hooked that button up to a command in the entry's model, which fires an event listened to by its parent container, which removes the entry from its list. My question:
- Is there a nicer way of doing this?
- Is there a neat way I can get it to pop up a confirmation dialog without violating MVVM? If possible, I'd like to avoid passing around a
Func<bool> checkBeforeDeleting