Search code examples
wpfmvvmshowdialog

How to show a dialog with ok and cancel on button click in wpf (mvvm)?


I am trying to display a dialog with ok and cancel button on a button click. And depending on the dialog result I would like to save\cancel the operation in wpf. I am not sure how to show a dialog in wpf. Any help?


Solution

  • Have a look at Close View from View Model article form code project

    Showing Dialogs When Using the MVVM Pattern

    MVVM and DialogResult