WPFCustomMessageBox
WPFCustomMessageBox copied to clipboard
Add default MessageBoxResult to the window
You can add a default MessageBoxResult in the DisplayButtons method. That way, if the user clicks on the close button of the window, the result returned will not be None in case of Yes/No/Cancel message boxes.