Styling And Theme

1 Answer 74 Views
Styling
guo
Top achievements
Rank 1
Iron
guo asked on 03 Jun 2021, 07:19 AM
How to save and load local themes

1 Answer, 1 is accepted

Sort by
0
Accepted
Martin Ivanov
Telerik team
answered on 03 Jun 2021, 07:43 AM

Hello Guo,

I would suggest you to check the setting a theme and the switching themes at runtime articles. If you want to allow the user to save the currently applied them in the application, you can use different approaches, but basically you will need to save information that tells what is the current theme and then load it when necessary.

For example, you can save the name of the theme as a string on the file system. The name can be saved in a local file in your application's directory, the isolated storage a database, or whatever storage you want to use. When you need to load the theme, you can get the name of the theme and use the approach from the switching themes at runtime article to load it.

You can also check the ChangeThemeRuntime SDK example.

I hope that helps.

Regards,
Martin Ivanov
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

guo
Top achievements
Rank 1
Iron
commented on 03 Jun 2021, 08:09 AM

Got it, thank you
Tags
Styling
Asked by
guo
Top achievements
Rank 1
Iron
Answers by
Martin Ivanov
Telerik team
Share this question
or