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

Themes not loading correctly

9 Answers 462 Views
Themes and Visual Style Builder
This is a migrated thread and some comments may be shown as answers.
Jill-Connie Lorentsen
Top achievements
Rank 1
Jill-Connie Lorentsen asked on 18 May 2009, 01:18 PM
I've tried following the documentation at http://www.telerik.com/help/winforms/vsb_thememanagerloadresource.html to find a solution to thie following problem, but without any luck, so I hope someone can help.

I have a MyTheme.xml file, which I've added to Resources and set Build action to Embedded Resource.

I use the radThemeManager to load it, and I've tried loading it both as file and as resource, but I experience problems in both cases.

If I load the theme as a file, I get an error at startup, but it looks like the theme is applied correctly to my controls.

If I load the theme as a resource, I don't get the error, but the theme is not applied correctly, and my controls have weird shapes and colours. This only appear at run time, at design time everything looks fine.

I suspect there is something wrong in my theme location. My UserContol project is in a namespace called MyCompany.MyControls. Is the name of the theme location 
        MyCompany.MyContols.MyUserControl.MyTheme.xml
or     MyCompany.MyContols.MyTheme.xml
or something else?

In which folder do I place the MyTheme.xml file? Does it matter, as long as it is added as a resource?

Thank you!

Regards, Jill-Connie Lorentsen
   

9 Answers, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 20 May 2009, 11:09 AM
Hello Jill-Connie Lorentsen,

Please refer to the following Knowledge Base article for additional information on loading custom themes: Adding custom redistributable themes to your applications. Generally, the resource path to a custom theme follows this pattern:  ProjectDefaultNamespace.Folder.FileName.Extension. You can find which is the default namespace of a project by right-clicking on the project node in the Solution Explorer tree and then choosing Properties. The Default namespace could be found under the Application tab.

I hope this helps. If you still has issues with loading your custom theme, please send me a sample project. This will allow me to investigate your case in details and provide you with accurate assistance.

Kind regards,
Nikolay
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Josue
Top achievements
Rank 1
answered on 22 May 2009, 02:38 PM
Hi,

I'm having the same problem as Jill, I'm trying to add a custom theme by resource and in design it works fine, and I verified the theme Location and its correct. But at run-time the theme doesn't show it just show the original blue theme. Please if you could resolve this or someone please post what you do to fix it. Thanks.
0
Nikolay
Telerik team
answered on 22 May 2009, 03:14 PM
Hello Josue,

If the theme is loaded correctly at design-time, but it is not loaded runtime, there are two things which may cause such behavior:
  • Incorrect resource path. Please double-read the this Knowledge Base article.
  • Make sure that the xml theme Build Action is set to Embedded Resource.

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

Greetings,

Nikolay
the Telerik team

 


Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Josue
Top achievements
Rank 1
answered on 22 May 2009, 03:46 PM
Hi,

I had verified everything, the XML had the Build Action in Embedded Resource. The path I had verified too, to me it seems as correct, it has  "ProjectDefaultNameSpace.Folder.ThemeName.Extension". The radThemManager shows the ThemeStorageValue as True and also the Reflector show it as a Resource. and still doesn't show at the run-time. The only thing I have done differently from the demo is that I added the controls first and then added the ThemeManager, then assign them the Theme as File and then change it to Resource. Please let me know if you need something else.
0
Nikolay
Telerik team
answered on 25 May 2009, 03:24 PM
Hi Josue,

Please open a new support ticket and send me a sample project reproducing the issue. This will allow me to help you further.

Regards,
Nikolay
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Jill-Connie Lorentsen
Top achievements
Rank 1
answered on 02 Jun 2009, 11:55 AM
Hello Josue and Nikolay!

Has a support ticket been opened for this problem? If so, is there a way for me (and others) to follow and see the outcome?

Regards,
Jill-Connie Lorentsen
0
Nikolay
Telerik team
answered on 02 Jun 2009, 12:26 PM
Hello Jill-Connie Lorentsen,

No support ticket was opened by Josue for the theme issue. However, you can open a support ticket and send us a sample project where a custom theme is loaded. This will allow me to analyze your case and provide you with further assistance. Then, I can make the outcome public in order to help the others who have the same issue.

Best wishes,
Nikolay
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
0
Thomas
Top achievements
Rank 1
answered on 15 Jan 2013, 05:31 AM
Can you please direct me to the support ticket where this issue is resolved. I have a support ticket open for this same issue. 

Thanks,
Thomas
0
Nikolay
Telerik team
answered on 16 Jan 2013, 10:39 AM
Hello Thomas,

No support tickets have been opened for the issue experienced by Jill-Connie and Josue regarding their cases. I noticed, however, that you have opened a ticket regarding your case. You will be able to find our answer for your case there.

All the best,
Nikolay
the Telerik team
Q3'12 SP1 of RadControls for WinForms is out now. See what's new.
Tags
Themes and Visual Style Builder
Asked by
Jill-Connie Lorentsen
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Josue
Top achievements
Rank 1
Jill-Connie Lorentsen
Top achievements
Rank 1
Thomas
Top achievements
Rank 1
Share this question
or