I've been unable to get any sort of custom theme to work. I'm using 4 RC, etc. The application is working fine other than this.
What I want to do is to create a copy of the Office Blue them and change some colors at design time. It would be great if you had a step-by-step recipe or could point me to one. What I've been trying:
Where am I going wrong?
Thank you in advance!
PS: Also, I have made sure to include references to everything in the theme project.
What I want to do is to create a copy of the Office Blue them and change some colors at design time. It would be great if you had a step-by-step recipe or could point me to one. What I've been trying:
- Created a Silverlight Library project (PmcCustomTheme) and took all of the xaml from the OfficeBlue (C:\Program Files (x86)\Telerik\RadControls for Silverlight Q1 2010\Themes\OfficeBlue) and put it a directory called Themes right off the root dir.
- Created a class derived from Theme, call PmcBlue and put the following code in the constructor: Source = new Uri(@"/PmcBlue;component/Themes/Common.xaml", UriKind.Relative); => This particular line doesn't work.
- In the other (Silverlight) project, I have this line in the constructor of my main page (MainPage.xaml.cs): StyleManager.ApplicationTheme = new PmcBlue(); and have a reference to the other project to hook things up.
Where am I going wrong?
Thank you in advance!
PS: Also, I have made sure to include references to everything in the theme project.