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

old themes in Q2

3 Answers 59 Views
Themes and Visual Style Builder
This is a migrated thread and some comments may be shown as answers.
Renato Lopes
Top achievements
Rank 1
Renato Lopes asked on 30 Jul 2008, 03:02 PM
Hi.

After I update to Q2, I can't use my themes. I'm not talking about the telerik themes, I want to use the themes I created with VisualStyleBuilder but They don't show anywhere. I tried to re-add them to the ThemeManager but no luck.

Can you help me?

Thanks

3 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 31 Jul 2008, 10:06 AM
Hello Renato,

Thank you for writing.

Can you share with us more details about your custom themes:
  • Where are located your own theme files?
  • Are the files are still there?
  • How do you use the custom themes:  as embedded resource or load it from file?
  • What is the problem when you try to re-add them to ThemeManager - the files is not exist or exception is thrown?

Here are more details about the changes of the Telerik prebuild themes in Q2 2008.

Could you, please clarify what is it that you consider to be installation wrong behavior? It could help us find the problem.

Kind regards,
Peter
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Renato Lopes
Top achievements
Rank 1
answered on 31 Jul 2008, 10:22 AM
Hi,
I use the custom themes embedded resource and load it from file.
In ThemeManager the exceprion is:


System.ArgumentNullException: Value cannot be null.
Parameter name: service
   at System.ComponentModel.Design.DesignerHost.Site.System.IServiceProvider.GetService(Type service)
   at Telerik.WinControls.Themes.Design.DteServices.GetActiveProjectItem()
   at Telerik.WinControls.Themes.Design.DteServices..ctor(IServiceProvider provider)
   at Telerik.WinControls.Themes.Design.ProjectManagement.GetProjectManagementInstance(IServiceProvider provider)
   at Telerik.WinControls.XmlTheme.LoadThemeInDesingMode(ThemeSource themeSource)
   at Telerik.WinControls.XmlTheme.LoadPartiallyFromStorage(ThemeSource themeSource)

Thanks.
0
Peter
Telerik team
answered on 31 Jul 2008, 01:51 PM
Hi Renato Lopes,

Thank you for getting back to me.

I was able to reproduce the issue. It will be addressed in one of our next releases. For the time being, the workaround I can suggest is setting the theme programmatically, in the Form constructor, right after InitializeComponent():

        public Form1()  
        {  
            InitializeComponent();  
 
            this.radButton1.ThemeName = "My Custom Button";//theme name from VSB, not file name 
        } 

Please excuse us for the inconvenience. I've updated your Telerik points account for reporting this issue.

If you have additional questions, feel free to contact me.


Best wishes,
Peter
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Themes and Visual Style Builder
Asked by
Renato Lopes
Top achievements
Rank 1
Answers by
Peter
Telerik team
Renato Lopes
Top achievements
Rank 1
Share this question
or