Custom theme errors with 2010 Q2 release

5 posts, 0 answers
  1. Morgan McCollough
    Morgan McCollough avatar
    34 posts
    Member since:
    May 2010

    Posted 18 Aug 2010 Link to this post

    I just tried to build a custom theme using the theme source from th 2010 Q2 Office Blue theme. Initially, I got a bunch of errors from the Common.xaml file, and I had to remove those sections specific to WPF including all the tags that look like conditional compilation commands or something. Anyway, I was just wondering if that Common.xaml file is even necessary, or do you generate some of the theme files and that is a hold-over from your internal build process?

    Once I got the theme to compile I got a runtime exception saying that a circular reference was detected in the merged dictionary. In order to get it to run, I had to comment out the reference to Telerik.Windows.Controls.Editor.xaml in my Generic.xaml file. Any idea what is happening there? I am assuming the source posted with the Q2 build is not quite the same as that used to build the actual Office Blue DLL.

    It is basically working for me, I just thought you might be able to add some insight into these issues. Thanks!
  2. Veselin Vasilev
    Admin
    Veselin Vasilev avatar
    2992 posts

    Posted 20 Aug 2010 Link to this post

    Hello Morgan McCollough,

    Have you followed the steps in these help topics:

    If yes, which one did you follow?

    All the best,
    Veselin Vasilev
    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
  3. DevCraft banner
  4. Morgan McCollough
    Morgan McCollough avatar
    34 posts
    Member since:
    May 2010

    Posted 20 Aug 2010 Link to this post

    It seems maybe I took the wrong approach. I followed the instructions I found on the forums and just adjusted for the recent release.
    http://www.telerik.com/community/forums/silverlight/general-discussions/create-custom-theme-dll-for-q3-2009.aspx

    I guess it didn't occur to me to look at the Silverlight docs because the last time I looked there was hardly anything there concerning custom themes (that was a while ago).

    Basically, what I wanted to do was make some modifications to the Office Blue theme. But, I wanted those modifications to be part of source control in our project. I didn't want to just modify the Office Blue, rebuild it, and then reference it as a DLL in the app. I'm sure there will be more tweaks to make in the future and I thought it made sense to have a custom theme as part of the source of the project.

    If I modify things to use the pattern in the second link you sent, how would I set things up to default to the Office Blue theme if things aren't found in mine?

    Just so you know, the basic modifications I am currently looking to make are in the roll-over colors for the menus, disabled view of combo boxes, and maybe a few minor color changes in the GridView. I was also experimenting with changing the ReadOnly state of the TextBox so it looked like a label. I was doing this by getting rid of the border and making the background transparent, but control was still highlighting and turning white when I clicked on it, and I wasn't sure where that was coming from.

    Thanks for your help!
  5. Vanya Pavlova
    Admin
    Vanya Pavlova avatar
    2019 posts

    Posted 25 Aug 2010 Link to this post

    Hi Morgan McCollough,

    I have prepared an example for Q2 and you will see how to modify the slider as it is shown in our documentation help.
    Please let me know if you need any further assistance.

    Regards,
    Vanya Pavlova
    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
  6. Morgan McCollough
    Morgan McCollough avatar
    34 posts
    Member since:
    May 2010

    Posted 27 Aug 2010 Link to this post

    Thanks for the example. Using this I have managed to set up a theme that more or less inherits from Office Blue. Basically, I copied over all of the top-level files from the Office Blue theme source (like Telerik.Windows.Controls.Input.xaml) and then only modified the resource inclusion statements that pertained to the controls I wanted to modify. That way my theme only contains styles for controls I wanted to modify, like ComboBox. I'm assuming that was the right approach.

    Before I copied over those top-level files, I could not get the theme to work as an application level theme. It would work when I assigned it to a specific control, but I just kept getting COM exceptions at run-time if I tried to use it as an application-level theme.

    Anyway, thanks again.
Back to Top
DevCraft banner