This is a migrated thread and some comments may be shown as answers.

Problem in applying custome themes to the Telerik controls.

6 Answers 466 Views
DatePicker
This is a migrated thread and some comments may be shown as answers.
SivaPrasad Bevara
Top achievements
Rank 1
SivaPrasad Bevara asked on 30 Aug 2010, 10:16 AM
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

6 Answers, 1 is accepted

Sort by
0
Kaloyan
Telerik team
answered on 01 Sep 2010, 07:48 AM
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
0
Nuno
Top achievements
Rank 1
answered on 04 Oct 2010, 03:23 PM

Hi SivaPrasad Bevara,

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

Thank you.

Nuno

0
Kaloyan
Telerik team
answered on 06 Oct 2010, 09:42 AM
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
0
Nuno
Top achievements
Rank 1
answered on 06 Oct 2010, 01:18 PM
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

0
SivaPrasad Bevara
Top achievements
Rank 1
answered on 06 Oct 2010, 03:49 PM
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
0
Nuno
Top achievements
Rank 1
answered on 06 Oct 2010, 06:36 PM
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

Tags
DatePicker
Asked by
SivaPrasad Bevara
Top achievements
Rank 1
Answers by
Kaloyan
Telerik team
Nuno
Top achievements
Rank 1
SivaPrasad Bevara
Top achievements
Rank 1
Share this question
or