42 references to MessageBoxButton
PresentationFramework (33)
src\Framework\Microsoft\Win32\FileDialog.cs (2)
1175MessageBoxButton buttons, 1697System.Windows.MessageBoxButton.OK, MessageBoxImage.Warning);
src\Framework\Microsoft\Win32\SaveFileDialog.cs (2)
477MessageBoxButton.YesNo, MessageBoxImage.Warning); 493MessageBoxButton.YesNo, MessageBoxImage.Warning);
src\Framework\MS\Internal\Documents\DocumentViewerHelper.cs (1)
312MessageBoxButton.OK,
src\Framework\MS\Internal\Printing\Win32PrintDialog.cs (1)
144(int) System.Windows.MessageBoxButton.OK
src\Framework\System\Windows\Controls\DocumentViewer.cs (1)
2285MessageBoxButton.OK,
src\Framework\System\Windows\MessageBox.cs (24)
108MessageBoxButton button, 129MessageBoxButton button, 149MessageBoxButton button, 168MessageBoxButton button) 185return ShowCore(IntPtr.Zero, messageBoxText, caption, MessageBoxButton.OK, MessageBoxImage.None, 0, 0); 200return ShowCore(IntPtr.Zero, messageBoxText, String.Empty, MessageBoxButton.OK, MessageBoxImage.None, 0, 0); 326MessageBoxButton button, 347MessageBoxButton button, 368MessageBoxButton button, 388MessageBoxButton button) 405return ShowCore((new WindowInteropHelper (owner)).CriticalHandle, messageBoxText, caption, MessageBoxButton.OK, MessageBoxImage.None, 0, 0); 420return ShowCore((new WindowInteropHelper (owner)).CriticalHandle, messageBoxText, String.Empty, MessageBoxButton.OK, MessageBoxImage.None, 0, 0); 424private static int DefaultResultToButtonNumber(MessageBoxResult result, MessageBoxButton button) 430case MessageBoxButton.OK: 432case MessageBoxButton.OKCancel: 435case MessageBoxButton.YesNo: 438case MessageBoxButton.YesNoCancel: 455MessageBoxButton button, 462throw new InvalidEnumArgumentException ("button", (int)button, typeof(MessageBoxButton)); 516private static bool IsValidMessageBoxButton(MessageBoxButton value) 518return value == MessageBoxButton.OK 519|| value == MessageBoxButton.OKCancel 520|| value == MessageBoxButton.YesNo 521|| value == MessageBoxButton.YesNoCancel;
src\Shared\MS\Internal\SecurityHelper.cs (2)
1179System.Windows.MessageBoxButton buttons, 1219System.Windows.MessageBoxButton buttons,
System.Activities.Core.Presentation (4)
System\Activities\Core\Presentation\StateContainerEditor.Utilities.cs (1)
490MessageBox.Show(message, SR.ErrorMessageBoxTitle, MessageBoxButton.OK, MessageBoxImage.Error);
System\ServiceModel\Activities\Presentation\MessageQueryEditor.xaml.cs (1)
207MessageBoxButton.OK, MessageBoxImage.Error);
System\ServiceModel\Activities\Presentation\ReceiveDesigner.xaml.cs (1)
230MessageBoxButton.OK, MessageBoxImage.Error);
System\ServiceModel\Activities\Presentation\SendDesigner.xaml.cs (1)
233MessageBoxButton.OK, MessageBoxImage.Error);
System.Activities.Presentation (5)
System.Activities.Presentation\System\Activities\Presentation\View\ActivityTypeResolver.xaml.cs (2)
226MessageBox.Show(SR.TypeResolverError, SR.TypeResolverErrorMessageTitle, MessageBoxButton.OK, MessageBoxImage.Error); 231MessageBox.Show(err.Message, err.GetType().Name, MessageBoxButton.OK, MessageBoxImage.Error);
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.Commands.cs (2)
1148MessageBox.Show(err.Message, err.GetType().Name, MessageBoxButton.OK, MessageBoxImage.Error); 1646MessageBoxResult result = MessageBox.Show(SR.DeleteAllAnnotationMessage, SR.DeleteAnnotationTitle, MessageBoxButton.YesNo, MessageBoxImage.Question, MessageBoxResult.No);
System.Activities.Presentation\System\Activities\Presentation\View\TypeBrowser.xaml.cs (1)
321MessageBox.Show(errorMessage, errorTitle, MessageBoxButton.OK, MessageBoxImage.Error);