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

Themes missing

4 Answers 351 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
PortVista
Top achievements
Rank 2
PortVista asked on 16 May 2007, 05:07 PM
After uninstalling and installing SP1, I get tons of errors about themes not being found. How do I fix this?

4 Answers, 1 is accepted

Sort by
0
PortVista
Top achievements
Rank 2
answered on 16 May 2007, 06:50 PM
This is basically the same problem I've been having for awhile. I opened a support ticket and they were no help on this issue. I've been able to use the RadThemeManager only by referencing a resource, and the themes only show up in runtime! In designtime the theme I created is never in the list.

In the RadThemeManager properties, LoadedThemeNames shows: Object reference not set to an instance of an object.

Now, with Q1 2007 SP2  (3.2), same behavior, but none of the cool Telerik themes are available to me. The VisualStyleBuilder opens from VS 2005 without any styles. No X/min/max buttons in the RadTitleBar -- and I've not been able to get these on my own TitleBar, so I'm wondering if the  built in themes not working has something to do here. I'm having all kinds of problems here -- one problem did seem to go away with the SP1, but more bugs are popping up here!
0
Mike
Telerik team
answered on 18 May 2007, 01:07 PM
Hello PortVista,

We are aware of the first issue, and as previously mentioned, the solution is not so easy to implement and didn't make it into the service pack. Nevertheless we will try to add this functionality ASAP and prepare for you a custom build containing the latest fixes.
As for the other issue, it seems that is not applicable to new projects or demo application projects that use the latest versions of our assembles. Can you verify whether the VSB application opens with no themes when started for from one of our  C# Examples ?
What you have to do is remove all references to Telerik assemblies from your application and add them again. Also verify that there are no older versions Telerik assemblies  in application's bin folder.
Please let us now whether our suggestions helped in solving the problem and if not how can we assist you further.

All the best,
Mike
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
PortVista
Top achievements
Rank 2
answered on 21 May 2007, 02:28 AM
I basically had to remove all the Telerik controls and re-add them to fix the problems. I've had to set all my Telerik controls to use the "Telerik" theme until a "custom theme" solution is available. Currently, I cannot find a way to redistribute my app using a custom theme, since you can only use a full hard coded path to the theme file. It would have been nice to know this was a known issue before I wasted time on this.
0
Mike
Telerik team
answered on 21 May 2007, 03:20 PM
Hello PortVista,

Please excuse us if there has been a misunderstanding about the issues related to themes in the VS designer.

Currently there are no problems related to redistributing the app with custom themes and theme files located either on the hard drive or in the application's resources. I have prepared an app that demonstrates these capabilities. The application loads its themes from various locations and all are redistributed properly.

In this application the main form loads some buttons. Two of  them have custom themes:
  • "Red", which is loaded from a local file and
  • "Green" is loaded from app's resources.
The Red theme location is specified using a relative path, according to the application's current working folder: "\\..\\..\\RedTheme.xml". Themes load normally at runtime.

The problem we are currently experiencing is that VS design time does not provide information about the application executable location and the corresponding theme is not available in design mode. Thus you may notice an error message when the theme location is specified this way in design mode. Nevertheless, the application works fine at runtime.

I hope this clears the problem. Let me know if I missing something.
 

Greetings,
Mike
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
General Discussions
Asked by
PortVista
Top achievements
Rank 2
Answers by
PortVista
Top achievements
Rank 2
Mike
Telerik team
Share this question
or