I'm using radwindow
for my custom confirmbox
in my WPF application. Now i need to get the result which the user clicked without firing an event.
//Code:
DialogParameters param = new DialogParameters();
param.Theme = new Windows8Theme();
param.OkButtonContent = "Save";
param.CancelButtonContent = "Discard";
param.Content = "Do you want to save your unsaved changes?";
param.Header = "";
RadWindow.Confirm(param);
Somehting like,
DialogResult result = MessageBox.Show("Do you want to save changes?", "Confirmation", messageBoxButtons.YesNoCancel);
if(result == DialogResult.Yes)
//...
else if (result == DialogResult.No)
//...
else
//...
How to achieve this?