Command binding to ViewModel with confirmation logic in View
问题 Looking for the most elegant solution to bind a button command to a ViewModel ICommand property, while allowing confirmation in the View. What I would like to do: Only allow a user to click a button when he/she should When the button is clicked, ask a confirmation If comfirmed, do work in the ViewModel, otherwise cancel Do not break MVVM architecture The confirmation requirement can be fulfilled by showing a messagebox from the ViewModel. However, I don't think this is the way to go. Doesn't