I want to get the button of the DialogBox that the user clicked ... yet when I use the DialogResult I get this error
'System.Windows.Window.DialogResult' is a 'property' but is used like a 'type'
How can I use the DialogResult??
Ok, I`ve managed to solve it.
MessageBoxResult Result = MessageBox.Show("Message Body", @"Caption/Title", MessageBoxButton.YesNo);
switch (Result)
{
case MessageBoxResult.Yes:
MessageBox.Show("Yes Pressed!!");
break;
case MessageBoxResult.No:
MessageBox.Show("No Pressed!!");
break;
}