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

Colored buttons on Message Box

1 Answer 94 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.
Chand
Top achievements
Rank 1
Chand asked on 22 Aug 2013, 07:31 PM

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");

Thanks

1 Answer, 1 is accepted

Sort by
0
Todor
Telerik team
answered on 23 Aug 2013, 11:44 AM
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.
 
Regards,
Todor
Telerik
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
Tags
MessageBox
Asked by
Chand
Top achievements
Rank 1
Answers by
Todor
Telerik team
Share this question
or