Colored buttons on Message Box

Thread is closed for posting
2 posts, 0 answers
  1. Chand
    Chand avatar
    1 posts
    Member since:
    Feb 2013

    Posted 22 Aug 2013 Link to this post

    Hello, I would like to create a MessageBox with colored buttons.

    Right now, I am creating a simple MessageBox as below, which creates 4 buttons with given Text but I would like to color each of those buttons with the mentioned color. Is this possible ? 

      var result = await RadMessageBox.ShowAsync(new string[] { "Blue", "Green", "Yellow", "Pink" }, "Choose a Color");

  2. Todor
    Todor avatar
    798 posts

    Posted 23 Aug 2013 Link to this post

    Hello Chand,

    Thank you for contacting us.

    This is not possible with the current implemnetation of RadMessageBox. The buttons are not part of the control template. Instead they are created in code so that we provide the option to add custom number of buttons depending on the buttons content that you provide. In order to alter the look of the buttons, you can add a Style for the Button type to the resources of the page/application. However this approach would lead to having the same style for all buttons and you won't be able to specify which one to be used by the each of the buttons.

    If you have other questions, don't hesitate to write us back.
    Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
Back to Top