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

RadMessageBox theme bug

2 Answers 32 Views
MessageBox
This is a migrated thread and some comments may be shown as answers.
Josh
Top achievements
Rank 1
Josh asked on 30 Jun 2014, 06:19 PM
There is a small bug with the RadMessageBox. If the application theme is changed (after a RadMessageBox is shown), the button on the message box will retain the original theme. This can be demonstrated in the "Telerik Theme Viewer" demo application shipped with Q2 2014.

2 Answers, 1 is accepted

Sort by
0
Josh
Top achievements
Rank 1
answered on 02 Jul 2014, 11:00 AM
I discovered that calling RadMessageBox.Instance.Dispose(); after changing the theme will fix this.
0
George
Telerik team
answered on 03 Jul 2014, 11:46 AM
Hello Josh,

Thank you for writing.

You should apply the theme to RadMessageBox manually before showing it. RadMessageBox has a method SetThemeName which is used for this purpose:
RadMessageBox.SetThemeName(ThemeResolutionService.ApplicationThemeName);
RadMessageBox.Show("This is RadMessageBox");

I hope this helps.

Regards,
George
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
Tags
MessageBox
Asked by
Josh
Top achievements
Rank 1
Answers by
Josh
Top achievements
Rank 1
George
Telerik team
Share this question
or