This is a migrated thread and some comments may be shown as answers.

Change background color of RadMessageBox?

1 Answer 155 Views
MessageBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Mustafa
Top achievements
Rank 1
Mustafa asked on 27 Jun 2013, 07:44 AM

Is it possible to change the background color of the RadMessageBox?



Details of my scenario:

I am putting a custom Html parser inside the RadMessageBox content. The html content might contain images of mathematical equations. These images have black font color. I tried changing the parser's background to white, which worked, but it looked weird. And that's when I started trying to change the background color of the RadMessageBox. 

Edit: Just tried overriding the PhoneChromeBrush but nothing changed :/



Thanks! 

1 Answer, 1 is accepted

Sort by
0
Victor
Telerik team
answered on 02 Jul 2013, 07:25 AM
Hello Mustafa,

Thank you for the question.
You can tweak the background of RadMessageBox by creating a custom style for the RadMessageBoxControl class. For example:

<Style TargetType="messageBox:RadMessageBoxControl">
    <Setter Property="Background"
            Value="Red"/>
</Style>
If you put this style in your page's resources, the message box on that page will have a red background.
Also, be sure to add this xaml namespace to the namespace declarations:
xmlns:messageBox="clr-namespace:Telerik.Windows.Controls.MessageBox;assembly=Telerik.Windows.Controls.Primitives"

Regards,
Victor
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINDOWS PHONE 7.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
MessageBox
Asked by
Mustafa
Top achievements
Rank 1
Answers by
Victor
Telerik team
Share this question
or