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

initilization failed

2 Answers 510 Views
ContextMenu
This is a migrated thread and some comments may be shown as answers.
Ravi
Top achievements
Rank 1
Ravi asked on 10 Jul 2012, 08:51 AM
Hi,

I am trying to create a style for RadContext menu for this i am  trying to set a setter propery (Setter Property="IconColumnWidth" Value="28"/>) 

In Expression Blend i am seeing this error:
Type 'MenuBase' initilization failed:Te Type initilizer for 'Telerik.Windows.Controls.MenuBase' threw an exception.

In Visual studo:
when i try to run i am receiving this error:

Set property 'System.Windows.ResourceDictionary.DeferrableContent' threw an exception.

Can you please tell me where i am doing mistake??

Thanks in advance.

2 Answers, 1 is accepted

Sort by
0
Masha
Telerik team
answered on 10 Jul 2012, 01:11 PM
Hi Srivinas,

"Set property 'System.Windows.ResourceDictionary.DeferrableContent' threw an exception." error
is thrown when you have multiple resources with the same Key defined in your resource dictionary.

Please, check in your code that you have no key duplicated and try to rebuild your project.
Please, send us a testable project if you still have problems with customization of RadContextMenu.

All the best,
Maria
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
0
Ravi
Top achievements
Rank 1
answered on 11 Jul 2012, 04:03 AM
Hi Maria,
Thank you so much for your help, my problem is solved.

Regards,
Srinivas,
Tags
ContextMenu
Asked by
Ravi
Top achievements
Rank 1
Answers by
Masha
Telerik team
Ravi
Top achievements
Rank 1
Share this question
or