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

TabControl Theme Issue

2 Answers 123 Views
TabControl
This is a migrated thread and some comments may be shown as answers.
Bob
Top achievements
Rank 2
Bob asked on 29 Oct 2014, 03:21 PM
I just upgraded from 2014 Q2 to 2014 Q3 for WPF and I am running into an issue that looks to be specific to the Windows 8 Touch theme on the TabControl.  I set the application wide theme using the following in my first window that loads:

Telerik.Windows.Controls.StyleManager.ApplicationTheme = new Telerik.Windows.Controls.Windows8TouchTheme();

On a subsequent window that loads that contains a RadTabControl, the application will throw an exception:
System.Windows.Markup.XamlParseException : Provide value on 'System.Windows.Baml2006.TypeConverterMarkupExtension' threw an exception.
The inner exception is:
System.Xaml.XamlParseException : Prefix 'telerik1' does not map to a namespace.

The exception is throw from the ShowDialog() method being called on that window.  The kicker is that if I comment out my application-wide theme or switch it to the standard Windows 8 theme, the issue goes away, but obviously I am not using the theme I would like to.

Anybody run into this before or have any suggested workarounds to it?

2 Answers, 1 is accepted

Sort by
0
Bob
Top achievements
Rank 2
answered on 29 Oct 2014, 04:58 PM
Okay, I figured out a way to fix this, at least for my situation.  I switched away from setting the theme application-wide using the ThemeManager and setting it using implicit styles in the App.xaml.  The documentation that I used is at http://www.telerik.com/help/wpf/styling-apperance-implicit-styles-overview.html.
0
Milena
Telerik team
answered on 30 Oct 2014, 03:42 PM
Hello Bob,

Sorry for the inconvenience caused.

We are aware of this issue and it is already logged in our Feedback portal, where you can track its progress and vote for its fix. 

I am glad you managed to handle this behavior on your own. Please note that we strongly suggest to use our Implicit Styles in combination with our NoXaml binaries. You can find more information on that matter in our blog post “XAML Theming – Implicit Styles versus StyleManager”.
 
Regards,
Milena
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
TabControl
Asked by
Bob
Top achievements
Rank 2
Answers by
Bob
Top achievements
Rank 2
Milena
Telerik team
Share this question
or