Changing button text of MessageBox

Nov 10, 2010 at 4:40 AM
Edited Nov 10, 2010 at 8:29 AM

I used extended wpf toolkit for its MessageBox. I wanted first to change direction to RTL.

I could it by using a Dictionary.xaml and add it to app.xaml resource.


<Style TargetType="{x:Type extToolkit:MessageBox}">
        <Setter Property="FlowDirection" Value ="RightToLeft"/>


Now I want to change button text of MessageBox.

How can I change its MessageBox button text? (For example Ok, Yes and No text)

Is it possible?

Nov 10, 2010 at 9:36 AM

Damn you are persistent...

From what I can see, you can't change the text on the button since the buttons used is the stock buttons that ship with the Framework.

You have the option of a Yes/No button combination, why would you want to join that up with an OK? Doesn't Yes and OK mean the same thing at the end?

Nov 10, 2010 at 11:30 AM

Damn you.

We want to use our language words.

Nov 10, 2010 at 1:37 PM

Your short term fix would be to download the source code, change the tesxt on the buttons, and recompile.  You could submit a feature request that allows you to change the text of the buttons.

Nov 11, 2010 at 7:25 AM


Jan 6, 2012 at 4:42 AM

Adding the following just for the sake of completion of the thread:

To change the captions of the buttons, use the following syntax in your style. There are more properties to be set for other buttons as well.

<Setter Property="OkButtonContent" Value ="[OK in your language]"/>