This question is locked. New answers and comments are not allowed.
After a series of testing, I've come up to one question. How can I set a Theme that will apply to all Telerik controls and MS controls equally without going to each MS control and setting telerik:StyleManager.Theme="Office_Black"?
If I set any theme in App.cs to be global, none of the MS controls get affected. And if I set each control manually like above, then how can I allow the user to select differnt Theme? I was hoping this issue is resoved by Q2!
Thanks!
[Update] I created a class in the App.cs that wraps the Telerik.Theme. In the start up, I created a static object of that class.
Now in my MainPage, based on user request, I can set a property based on Theme selection. (default is set to Office_Black)
Then in other pages, in the constructor I can set each MS control to the selected theme.
StyleManager.SetTheme(MyButton, App.NewTheme.MyTheme);
This solves the problem not having hard coded theme names in each page. But I still have to manually Set each MS control in each page. Is there a way to get around this?
Thanks!
[Update] I created a class in the App.cs that wraps the Telerik.Theme. In the start up, I created a static object of that class.
Now in my MainPage, based on user request, I can set a property based on Theme selection. (default is set to Office_Black)
Then in other pages, in the constructor I can set each MS control to the selected theme.
StyleManager.SetTheme(MyButton, App.NewTheme.MyTheme);
This solves the problem not having hard coded theme names in each page. But I still have to manually Set each MS control in each page. Is there a way to get around this?
Thanks!