In System.Windows.Forms.Button there is a property DialogResult, where is this property in the System.Windows.Controls.Button (WPF)?
MessageBoxResult result = MessageBox.Show("",""); if (result == MessageBoxResult.Yes) { // CODE IN HERE } else { // CODE IN HERE }