This project has moved and is read-only. For the latest updates, please go here.

A gray-ish area in the MessageBox.

Aug 21, 2013 at 1:18 AM
I basically styled the MessageBox as shown here, but without the CloseButtonStyle. In the code-behind of my MainWindow.xaml, I have the following code:

private void Button_Click(object sender, RoutedEventArgs e)
        MessageBoxResult result = Xceed.Wpf.Toolkit.MessageBox.Show("An error has ocurred.",     "Error", MessageBoxButton.OK, MessageBoxImage.Error);

I was wondering what was causing the gray-area at the bottom of the MessageBox, rather than an aquamarine fill like the rest of the background.
Aug 21, 2013 at 1:28 PM

It is the "ButtonRegionBackground". Like the standard Window MessageBox, the region where the button "OK" is located has it's own background. Just set this "RegionBackground" to the same color as the "Background" property of the MessageBox.