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

Style of MessageBox button

Nov 24, 2010 at 5:58 PM

Hi,

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

Thanks,

CoderChris

Nov 24, 2010 at 9: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 12: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 2: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 5:33 PM

Thanks!