This project has moved. For the latest updates, please go here.

Problems with MessageBox.ButtonRegionBackground in Windows7

Developer
Apr 28, 2015 at 3:04 PM
Someone wrote :
"Hi, I do not succeed to change the background color of the band below the button OK / Cancel of the MessageBox. Is somemone succeed to do that? The printscreen of the example is OK, but if I use this code I do not have the same result (Win7)."
Developer
Apr 28, 2015 at 3:06 PM
It looks good in Windows 7 and Windows 8 :
 <Grid>
        <Button Content="TEST"
                Width="150"
                Height="25"
                Click="Button_Click_1"/>

        <xctk:WindowContainer>
            <xctk:MessageBox x:Name="_messageBox"
                            Caption="MessageBox" 
                            Text="This is a MessageBox."
                            ButtonRegionBackground="Orange" />
        </xctk:WindowContainer>       
</Grid>

 public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }

        private void Button_Click_1(object sender, RoutedEventArgs e)
        {
            _messageBox.ShowMessageBox();
        }
    }