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

Problem in applying theme dynamically

1 Answer 56 Views
DatePicker
This is a migrated thread and some comments may be shown as answers.
SivaPrasad Bevara
Top achievements
Rank 1
SivaPrasad Bevara asked on 17 Aug 2010, 07:10 PM
Hi,

I am using the following code to apply theme dynamically on mouseover of rectangular color box.

Telerik.Windows.Controls.StyleManager.ApplicationTheme = new Theme( Uri( "/Telerik.Windows.Themes.CustomTheme;component/Themes/Generic.xaml", UriKind.Relative ) );

I have created 2 similar custom themes with 2 different colors. In the Xaml page constructor before the Initialize() method, I am loading one theme and it is applied properly. I am trying change the theme on mouseover of a rectagular color box but it is not changing the Theme.

Please help me.

Thanks in advance,
SivaPrasad.B

1 Answer, 1 is accepted

Sort by
0
Dani
Telerik team
answered on 18 Aug 2010, 09:29 AM
Hello SivaPrasad Bevara,

Thank you for contacting us.

You need to change the application theme at runtime , which is a more complicated process than using a mouseover event. In order for the new theme to be applied to your controls, they need to be recreated on the screen.

Please check this blog post related to the dynamic switch of application themes. Also, check this forum thread for more details.

I hope this information helps.

All the best,
Dani
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
DatePicker
Asked by
SivaPrasad Bevara
Top achievements
Rank 1
Answers by
Dani
Telerik team
Share this question
or