RadMessageBox theme bug

3 posts, 0 answers
  1. Josh
    Josh avatar
    61 posts
    Member since:
    Dec 2009

    Posted 30 Jun 2014 Link to this post

    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. Josh
    Josh avatar
    61 posts
    Member since:
    Dec 2009

    Posted 02 Jul 2014 Link to this post

    I discovered that calling RadMessageBox.Instance.Dispose(); after changing the theme will fix this.
  3. UI for WinForms is Visual Studio 2017 Ready
  4. George
    Admin
    George avatar
    500 posts

    Posted 03 Jul 2014 Link to this post

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