Change background color of RadMessageBox?

2 posts, 0 answers
  1. Mustafa
    Mustafa avatar
    2 posts
    Member since:
    Jan 2013

    Posted 27 Jun 2013 Link to this post

    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! 

  2. Victor
    Admin
    Victor avatar
    1351 posts

    Posted 02 Jul 2013 Link to this post

    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 >>
  3. DevCraft banner
Back to Top