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

RadChartView Series lost it's color after applied Theme

1 Answer 110 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Karuppasamy
Top achievements
Rank 1
Karuppasamy asked on 25 Mar 2015, 11:22 AM
RadChartView Series lost it's color after applied Theme.
Please check attached screen shot.
I was applied theme in SplashScreen (ThemeResolutionService.ApplicationThemeName = Office2010BlueTheme1.ThemeName)

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 30 Mar 2015, 06:22 AM
Hello Karuppasamy,

Thank you for writing.

Perhaps you are executing the splash form in a separate thread (like in our article: Add SplashScreen to your application). This can cause the incorrect behavior. This is why I will recommend you to initialize and apply the theme in the main thread. For example, if you are using the approach from our article, you can use the following code to load the theme:
Telerik.WinControls.Themes.TelerikMetroTheme telerikMetroTheme1 = new Telerik.WinControls.Themes.TelerikMetroTheme();
Thread splashThread = new Thread(new ThreadStart(
    delegate
    {
        splashForm = new Form_Splash();
  
        ((RadControl)splashForm.Controls[5]).ThemeName = telerikMetroTheme1.ThemeName;
        Application.Run(splashForm);
    }
    ));
  
I hope this helps. Should you have any other questions do not hesitate to ask.

Regards,
Dimitar
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
Tags
ChartView
Asked by
Karuppasamy
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Share this question
or