I am working on a WPF Application. One of my Windows has a Button called "Cancel" with its IsCancel=true
. I need to show a message box with Yes/No when the user clicks Cancel or presses ESCAPE
Key. If the user click Yes, the Window should continue closing but if the user clicks No, it should not close the form but continue the regular operation with the Window opened. How can I do so? Please help. Thanks in advance.
C# – WPF Cancel Button
buttoncvisual studio 2010wpf
Related Topic
- C# – How to skip Validating after clicking on a Form’s Cancel button
- Html – How to create an HTML button that acts like a link
- C# – Handling the window closing event with WPF / MVVM Light Toolkit
- Wpf – How to perform Single click checkbox selection in WPF DataGrid
- Wpf – DialogResult WPF
- C# – How to Close a Window in WPF on a escape key
Best Answer
this will help you