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

[Solved] Using Custom Skins with VS 2008

1 Answer 77 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 11 Feb 2010, 09:06 PM
I'm just starting with custom skins and I"m having a little problem.  I've created a custom skin using the Visual Style Builder (nice BTW).  I'm drug my new skin to the App_Themes directory and added  a Menu control to my master page and a Calendar control to my content page set.  Set EnableEmbeddedSkins="false" and set Skin="myskin". Compiled and opened up in IE and nothing..... From everything I read I shouldn't have to register the css files since everything is in the App_Themes directory. I played around a little and got the new skin to work by adding 

<link href="App_Themes/myskin/Menu.myskin.css" rel="stylesheet" type="text/css" />

 

 

<link href="App_Themes/myskin/Calendar.myskin.css" rel="stylesheet" type="text/css" />

 

to my master page and everything worked.  I didn't think I would need to do that for each RadControl I'd be using. That could get cumbersome.  What am I doing wrong?   What is the best practice for using custome skins?  From the documentation I thought I was doing things the right way but that doesn't appear to work unless I  register the css for each control.

Thanks


Mike

 

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 12 Feb 2010, 09:46 AM
Hello Michael,

From what you are saying, I conclude that you have not set the Theme property in the Page directive

<%@ Page Language="C#" Theme="..." %>

Sincerely yours,
Dimo
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
General Discussions
Asked by
Michael
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or