XAMLParserException thrown when using Application Theme With Silverlight Class Library

2 posts, 1 answers
  1. Ryan
    Ryan avatar
    8 posts
    Member since:
    Oct 2012

    Posted 31 Dec 2009 Link to this post


      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?


  2. Answer
    Hristo avatar
    832 posts

    Posted 05 Jan 2010 Link to this post

    Hello Ryan,

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

    Kind regards,
    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.
Back to Top