Error XAML with style of themes

4 posts, 1 answers
  1. Dario Concilio
    Dario Concilio avatar
    129 posts
    Member since:
    Apr 2016

    Posted 09 Sep Link to this post

    Hi to all,

    I have a serious problem, after apply theme, I can't run project.

    I received this error.

    More information: 'An exception was thrown when the specification of a value of' System.Windows.Markup.StaticResourceHolder '.' line number '47' and row position '33'.

    I tryed to remove all data about theme, nothing.

    How can I get out to this problem?

  2. Dario Concilio
    Dario Concilio avatar
    129 posts
    Member since:
    Apr 2016

    Posted 09 Sep Link to this post

    Update:

    Internal error: Could not find resource named 'RadBusyIndicator Style'. For resource names it is done case-sensitive.

  3. UI for WPF is Visual Studio 2017 Ready
  4. Answer
    Martin
    Admin
    Martin avatar
    63 posts

    Posted 09 Sep Link to this post

    Hi Dario,

    In order to base a style on a default one from our suite (as RadBusyIndicatorStyle) you will need to use NoXaml and merge the required ResourceDictionaries. If already using NoXaml, make sure that you are merging properly the Telerik.Windows.Controls.xaml and the System.Windows.xaml dictionaries from the theme assembly. Also, make sure  that the theme assembly is included. Furthermore the name of the style should be all-together RadBusyIndicatorStyle without a space, which might be causing problems.
    ...
    <ResourceDictionary Source="/Telerik.Windows.Themes.VisualStudio2013;component/Themes/System.Windows.xaml"/>
    <ResourceDictionary Source="/Telerik.Windows.Themes.VisualStudio2013;component/Themes/Telerik.Windows.Controls.xaml"/>
    ...

    Regards,
    Martin
    Telerik by Progress
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
  5. Dario Concilio
    Dario Concilio avatar
    129 posts
    Member since:
    Apr 2016

    Posted 12 Sep in reply to Martin Link to this post

    Ok, finally I remove all reference of themes and recreate all.

    Now it's ok.

    Thank you.

Back to Top