Problem in applying custome themes to the Telerik controls.

7 posts, 0 answers
  1. SivaPrasad Bevara
    SivaPrasad Bevara avatar
    73 posts
    Member since:
    Oct 2012

    Posted 30 Aug 2010 Link to this post

    Hi,

    I am using Telerik 2010.2.812.1040 version.

    I have created a custom telerik theme using Silverlight Class library. I am getting the following error while trying to apply the theme to the application.

    XamlParseException occurred - Set property ‘Telerik.Windows.Controls.Theme.Application.ThemeSetter’ threw an exception.


    Following is the code I am using to set the theme.

    StyleManager.ApplicationTheme = new BubbleCremeTheme.BubbleCremeTheme();

    "BubbleCremeTheme" is the name of the class library created.

    Please help.

    Regards,
    SivaPrasad.B
  2. Kaloyan
    Admin
    Kaloyan avatar
    920 posts

    Posted 01 Sep 2010 Link to this post

    Hello SivaPrasad Bevara,

    We will appreciate sending us the custom project so we can elaborate accurately to the problem.

    Best wishes,
    Kaloyan
    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. Nuno
    Nuno avatar
    53 posts
    Member since:
    Dec 2007

    Posted 04 Oct 2010 Link to this post


    Hi SivaPrasad Bevara,

    Did you find a solution to that problem? Can you share?

    Thank you.

    Nuno

  5. Kaloyan
    Admin
    Kaloyan avatar
    920 posts

    Posted 06 Oct 2010 Link to this post

    Hi Nuno,

    We can't predict what might be causing the problem without any project.

    Regards,
    Kaloyan
    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. Nuno
    Nuno avatar
    53 posts
    Member since:
    Dec 2007

    Posted 06 Oct 2010 Link to this post

    Hi Kaloyan,

    So in my case I can explain better:

    I'm trying to create my own Theme following the Telerik approach but I'm getting the following error:

    System.Windows.Markup.XamlParseException occurred
      Message=Set property 'Telerik.Windows.Controls.Theme.ApplicationThemeSetter' threw an exception. [Line: 33 Position: 67]
      LineNumber=33
      LinePosition=67
      StackTrace:
           at MS.Internal.XcpImports.CreateFromXaml(UnmanagedMemoryStream stream, String sourceAssemblyName, Boolean createNamescope, Boolean requireDefaultNamespace, Boolean allowEventHandlers)
      InnerException: System.Collections.Generic.KeyNotFoundException
           Message=The given key was not present in the dictionary.
           StackTrace:
                at System.ThrowHelper.ThrowKeyNotFoundException()
                at System.Collections.Generic.Dictionary`2.get_Item(TKey key)
                at System.Windows.ResourceManagerWrapper.GetResourceForUri(Uri xamlUri, Type componentType)
           InnerException:


    There isn't an attached project in here but all I did was applying all the steps as described in here to create a new theme, styling just RadTileView and RadChart controls.
    This way I could style RadCharts so they have customized slices colors, a custom chart background, etc. Also giving a customized look to the RadTileView background.

    But I'm getting the mentioned error. You can see the attached image.

    I'm using version 2010.2.714.1040 assemblies, VS2010 and I copied the Style files from
    C:\Program Files (x86)\Telerik\RadControls for Silverlight Q2 2010 SP2\Themes\OfficeSilver\Themes\Office\Silver
    (just Chart.xaml and TileView.xaml)

    Please let me know your opinion.

    Thank you,
    Nuno Senica

  7. SivaPrasad Bevara
    SivaPrasad Bevara avatar
    73 posts
    Member since:
    Oct 2012

    Posted 06 Oct 2010 Link to this post

    Hi,

    The problem is fixed.

    The problem is because of one of the missing reference. I added that one.

    Now it is working.

    Regards,
    SivaPrasad.B
  8. Nuno
    Nuno avatar
    53 posts
    Member since:
    Dec 2007

    Posted 06 Oct 2010 Link to this post

    Hi SivaPrasad,

    Thanks for getting back to me.

    I found I needed to create a Telerik.Windows.Controls.xaml ResourceDictionary and leave it blank.

    Best regards,
    Nuno

Back to Top
DevCraft banner