initilization failed

3 posts, 0 answers
  1. Ravi
    Ravi avatar
    97 posts
    Member since:
    Jun 2012

    Posted 10 Jul 2012 Link to this post

    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. Masha
    Admin
    Masha avatar
    355 posts

    Posted 10 Jul 2012 Link to this post

    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 >>
  3. UI for WPF is Visual Studio 2017 Ready
  4. Ravi
    Ravi avatar
    97 posts
    Member since:
    Jun 2012

    Posted 10 Jul 2012 Link to this post

    Hi Maria,
    Thank you so much for your help, my problem is solved.

    Regards,
    Srinivas,
Back to Top