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