Vista toolbar theme no longer working (XAML parse error)

5 posts, 0 answers
  1. Jonny
    Jonny avatar
    19 posts
    Member since:
    Aug 2012

    Posted 03 Sep 2009 Link to this post

    Hi,

    Back in May I contacted you for assistance in this forum in changing the Toolbar theme (without leaving grey button backgrounds, as you get if you use ThemeProperty), and you pointed me at a solution involving adding this resource to the XAML file :

    <UserControl.Resources>

    <telerikCtrl:Theme x:Key="theme" Source="/Telerik.Windows.Themes.Vista;component/Themes/generic.xaml" IsApplicationTheme="True" />

    </UserControl.Resources>


    With the latest release and Silverlight 3, this no longer works, and gives an unspecified XAML parse error at runtime.

    Please advise how I can get this working again,

    Ben.
  2. Miroslav
    Admin
    Miroslav avatar
    922 posts

    Posted 03 Sep 2009 Link to this post

    Hi Ben,

    Unfortunately we introduced a bug in the external themes for the ToolBar. The bug will be resolved with this week's Internal Build (expected on Friday).

    Your Telerik Points have been updated.

    Best wishes,
    Miroslav
    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.
  3. DevCraft banner
  4. Jonny
    Jonny avatar
    19 posts
    Member since:
    Aug 2012

    Posted 08 Sep 2009 Link to this post

    Thanks - I have tried with build 2.904 and the problem still exists.

    Note also that it's not just the toolbar, the issue also applies to RadGridView. 

    If the theme resource is in the XAML then a XAML parse exception then occurs at runtime if either a RadToolbar or a RadGridView is present in that XAML.  If neither are present then the XAML parses correctly.

    Thanks,

    Ben.
  5. Miroslav
    Admin
    Miroslav avatar
    922 posts

    Posted 08 Sep 2009 Link to this post

    Hi Ben,

    I am sorry that I did not notice the first time that the path for the xaml is not correct anymore since the controls now have separate .xaml files and not just one generic file.

    You can now define an external theme by just instantiating it. This will save you the definition of the path and any future errors, should this change. Here is how you can define the theme now:

    <telerik:VistaTheme x:Key="theme" IsApplicationTheme="True" />

    I am also attaching the project I used to test this.

    Regards,
    Miroslav
    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.
  6. Jonny
    Jonny avatar
    19 posts
    Member since:
    Aug 2012

    Posted 08 Sep 2009 Link to this post

    Thanks - works fine,

    Ben.
Back to Top
DevCraft banner