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

Error XAML with style of themes

3 Answers 214 Views
Installer and Visual Studio Extensions
This is a migrated thread and some comments may be shown as answers.
Dario Concilio
Top achievements
Rank 2
Dario Concilio asked on 09 Sep 2016, 08:32 AM

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?

3 Answers, 1 is accepted

Sort by
0
Dario Concilio
Top achievements
Rank 2
answered on 09 Sep 2016, 08:35 AM

Update:

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

0
Accepted
Martin
Telerik team
answered on 09 Sep 2016, 09:06 AM
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.
0
Dario Concilio
Top achievements
Rank 2
answered on 12 Sep 2016, 12:03 PM

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

Now it's ok.

Thank you.

Tags
Installer and Visual Studio Extensions
Asked by
Dario Concilio
Top achievements
Rank 2
Answers by
Dario Concilio
Top achievements
Rank 2
Martin
Telerik team
Share this question
or