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

XAMLParserException thrown when using Application Theme With Silverlight Class Library

1 Answer 32 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ryan
Top achievements
Rank 1
Ryan asked on 31 Dec 2009, 08:10 PM
Hello,

  I'm running into an XAMLParserException for some reason when I'm trying to set the ApplicationTheme in the App class's Application_Startup event. 

So in my main application's App.xaml.vb file, I have the following:

 

Private Sub Application_Startup(ByVal o As Object, ByVal e As StartupEventArgs) Handles Me.Startup

 

  Telerik.Windows.Controls.StyleManager.ApplicationTheme =

New Telerik.Windows.Controls.Office_BlueTheme

 

 

  Me.RootVisual = New SilverlightClassLibrary1.Page1

 

 

End Sub

 


Then I have a Class Library and in Page1 I have a RadMenu.  If I run the application, I get an XAMLParserException.  If I comment out the Telerik.Windows.Controls.StyleManager.ApplicationTheme = New Telerik.Windows.Controls.Office_BlueTheme line, then it works fine.  Is there something special that needs to be done to set the application wide theme when using a class library?

Thanks.


1 Answer, 1 is accepted

Sort by
0
Accepted
Hristo
Telerik team
answered on 05 Jan 2010, 08:14 AM
Hello Ryan,

Did you include the Office_Blue assembly?
If you did please send as small repro project.

Kind regards,
Hristo
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
General Discussions
Asked by
Ryan
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Share this question
or