43 references to MessageBoxResult
PresentationFramework (40)
src\Framework\Microsoft\Win32\FileDialog.cs (2)
1187ret = (MessageBox.Show(message, DialogCaption, buttons, image, MessageBoxResult.OK /*default button is OK*/, 0) 1189MessageBoxResult.Yes);
src\Framework\System\Windows\MessageBox.cs (37)
77private static MessageBoxResult Win32ToMessageBoxResult(int value) 82return MessageBoxResult.OK; 84return MessageBoxResult.Cancel; 86return MessageBoxResult.Yes; 88return MessageBoxResult.No; 90return MessageBoxResult.No; 105public static MessageBoxResult Show( 110MessageBoxResult defaultResult, 126public static MessageBoxResult Show( 131MessageBoxResult defaultResult) 146public static MessageBoxResult Show( 165public static MessageBoxResult Show( 183public static MessageBoxResult Show(string messageBoxText, string caption) 198public static MessageBoxResult Show(string messageBoxText) 322public static MessageBoxResult Show( 327MessageBoxImage icon, MessageBoxResult defaultResult, 343public static MessageBoxResult Show( 349MessageBoxResult defaultResult) 364public static MessageBoxResult Show( 384public static MessageBoxResult Show( 403public static MessageBoxResult Show(Window owner, string messageBoxText, string caption) 418public static MessageBoxResult Show(Window owner, string messageBoxText) 424private static int DefaultResultToButtonNumber(MessageBoxResult result, MessageBoxButton button) 433if (result == MessageBoxResult.Cancel) return DEFAULT_BUTTON2; 436if (result == MessageBoxResult.No) return DEFAULT_BUTTON2; 439if (result == MessageBoxResult.No) return DEFAULT_BUTTON2; 440if (result == MessageBoxResult.Cancel) return DEFAULT_BUTTON3; 451internal static MessageBoxResult ShowCore( 457MessageBoxResult defaultResult, 470throw new InvalidEnumArgumentException ("defaultResult", (int)defaultResult, typeof(MessageBoxResult)); 508MessageBoxResult result = Win32ToMessageBoxResult (UnsafeNativeMethods.MessageBox (new HandleRef (null, owner), messageBoxText, caption, style)); 537private static bool IsValidMessageBoxResult(MessageBoxResult value) 539return value == MessageBoxResult.Cancel 540|| value == MessageBoxResult.No 541|| value == MessageBoxResult.None 542|| value == MessageBoxResult.OK 543|| value == MessageBoxResult.Yes;
src\Shared\MS\Internal\SecurityHelper.cs (1)
1227System.Windows.MessageBox.ShowCore(parentHwnd, text, title, buttons, image, MessageBoxResult.None, MessageBoxOptions.None);
System.Activities.Presentation (3)
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.Commands.cs (3)
1646MessageBoxResult result = MessageBox.Show(SR.DeleteAllAnnotationMessage, SR.DeleteAnnotationTitle, MessageBoxButton.YesNo, MessageBoxImage.Question, MessageBoxResult.No); 1648if (result != MessageBoxResult.Yes)