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

Vista toolbar theme no longer working (XAML parse error)

4 Answers 51 Views
Navigation
This is a migrated thread and some comments may be shown as answers.
Jonny
Top achievements
Rank 1
Jonny asked on 03 Sep 2009, 01:17 PM
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.

4 Answers, 1 is accepted

Sort by
0
Miroslav
Telerik team
answered on 03 Sep 2009, 01:52 PM
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.
0
Jonny
Top achievements
Rank 1
answered on 08 Sep 2009, 10:43 AM
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.
0
Miroslav
Telerik team
answered on 08 Sep 2009, 12:29 PM
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.
0
Jonny
Top achievements
Rank 1
answered on 08 Sep 2009, 12:37 PM
Thanks - works fine,

Ben.
Tags
Navigation
Asked by
Jonny
Top achievements
Rank 1
Answers by
Miroslav
Telerik team
Jonny
Top achievements
Rank 1
Share this question
or