Hi everyone!
I am trying to build a custom theme which is based on "OfficeSIlver" - or any other built-in theme... My first approach was to simply copy the according theme project to my solution and then run a "Search & Replace" to replace "Office_Silver" to "Office_Custom". I changed the "Build"-Settings of the project (assembly-name and default-namespace) accordingly.
Then I added a custom "Theme" class which derived from "Theme" and is named "Office_CustomTheme".
I referenced the new theme-project, instantiated the theme and set it as application-wide theme.
I get a LOAD of xaml-parsing-errors. Nothing seems to work right.
The least of my problems was the "external" namespace definition:
xmlns:external="clr-namespace:Telerik.Windows.Controls.External"
I am trying to build a custom theme which is based on "OfficeSIlver" - or any other built-in theme... My first approach was to simply copy the according theme project to my solution and then run a "Search & Replace" to replace "Office_Silver" to "Office_Custom". I changed the "Build"-Settings of the project (assembly-name and default-namespace) accordingly.
Then I added a custom "Theme" class which derived from "Theme" and is named "Office_CustomTheme".
I referenced the new theme-project, instantiated the theme and set it as application-wide theme.
I get a LOAD of xaml-parsing-errors. Nothing seems to work right.
The least of my problems was the "external" namespace definition:
xmlns:external="clr-namespace:Telerik.Windows.Controls.External"
(which just does not exist)
or some mysterious "external:Office_SilverThemeExternal":
x:Key="{telerik:ThemeResourceKey ThemeType=external:Office_SilverThemeExternal , ElementType=telerik:RadButton}"
After fixing that (renaming to my new local theme) still nothing works as expected, xaml-files are referenced but not found - if that is fixed some other obsucre errors pop up. After that I just gave up.
I am very disappointed - since telerik advertises that everything is easily and effortless to customize (in Blend even)
The documentation link that "should" probably describe how it is done the right way is down.
I would very much appreciate a step by step description on how to achieve this.
Thank you very much.
Kind regards,
Wolfgang