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

[Solved] Expression Dark theme - Not working if re-compiled

2 Answers 243 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Jean Ressouche
Top achievements
Rank 1
Jean Ressouche asked on 26 Nov 2010, 07:26 AM
Hello,

In the package RadControls_for_Silverlight_4_2010_3_1110_DEV.zip,
the expressionDark supplied assembly (Telerik.Windows.Themes.ExpressionDark.dll) is working but, if i re-compile if (from (\Telerik\RadControls for Silverlight Q3 2010\Themes\ExpressionDark project), the result dll is not working anomore in a project.
 - even without any modification
 - a new empty project, with a RadButton, the re-compiled assembly in references and assignation like "StyleManager.ApplicationTheme = new Expression_DarkTheme();" in the App.xaml.cs allow to reproduce.

- Exception raised in the Mainpage's InitializeComponent();

{System.Windows.Markup.XamlParseException: La propriété Set 'System.Windows.FrameworkElement.Style' a levé une exception. [Line: 9 Position: 154] ---> System.Windows.Markup.XamlParseException: The property Set 'Telerik.Windows.Controls.Theme.ApplicationThemeSetter' raised an exception. [Line: 35 Position: 67] ---> System.Collections.Generic.KeyNotFoundException: La clé donnée était absente du dictionnaire.
   à System.ThrowHelper.ThrowKeyNotFoundException()
   à System.Collections.Generic.Dictionary`2.get_Item(TKey key)
   à System.Windows.ResourceManagerWrapper.GetResourceForUri(Uri xamlUri, Type componentType)
   --- Fin de la trace de la pile d'exception interne ---
   à MS.Internal.XcpImports.CreateFromXaml(UnmanagedMemoryStream stream, String sourceAssemblyName, Boolean createNamescope, Boolean requireDefaultNamespace, Boolean allowEventHandlers)
   à System.Windows.Controls.Control.GetBuiltInStyle(IntPtr nativeTarget, IntPtr& nativeStyle)
   --- Fin de la trace de la pile d'exception interne ---
   à System.Windows.Application.LoadComponent(Object component, Uri resourceLocator)
   à CardioWebPlanning.MainPage.InitializeComponent()
   à CardioWebPlanning.MainPage..ctor()}


I need to fix the issue in the scheduler.xaml of this theme to be able to use it in our products (resize issues, specially with multiple groups), and this is quite a problem to be today, can you help ?

Note that the others themes seems to be correct : with Summer theme i don't have any issue, i can recompile it / change it correctly.

Thanks


[Edit] I notice that there is the images folder with 2 png, but this folder is not referenced in the project, maybe one of the issues?

2 Answers, 1 is accepted

Sort by
0
Accepted
Pana
Telerik team
answered on 01 Dec 2010, 11:39 AM
Hi Jean Ressouche,

The distributed assemblies are build in internal telerik projects that use some home brew telerik preprocesses. They output the dlls and the Theme solution. Unluckily the Expression_Dark theme project seems to use ExpressionDark namespace. You can edit the properties of the ExpressionDark theme project and change the assembly namespace and the default namespace from "...ExpressionDark" to "...Expresion_Dark". This successfully fixes the problem.

All the best,
Pana
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
Jean Ressouche
Top achievements
Rank 1
answered on 01 Dec 2010, 02:25 PM
Thansk ! That's perfect :-)
Tags
General Discussions
Asked by
Jean Ressouche
Top achievements
Rank 1
Answers by
Pana
Telerik team
Jean Ressouche
Top achievements
Rank 1
Share this question
or