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

Style of MessageBox button

Nov 24, 2010 at 6:58 PM


Is it possible to change the style of the 'OK' button within the messagebox?



Nov 24, 2010 at 10:07 PM

Currently the only way to do it is to create a global style that targets type Button.  Of course this probably isn't the most optimal solution.  Currently the controls lack a lot of styling capabilities.  I am slowly adding these capabilities to the tooolkit.

Nov 25, 2010 at 1:11 AM

Thanks a lot. I did try styling the button type globally and the button seemed to have an animation running on it. I used a gradient to set the background. If you reproduce it you'll see what I mean.

Nov 25, 2010 at 3:42 AM

The buttons are default Microsoft buttons and inherit the default button style.  Your style will have to handle all the different button states to control the default animations.

Nov 25, 2010 at 6:33 PM