+1-888-365-2779
Try Now
More in this section

Forums / Designing with Sitefinity / Exposing and setting SkinID using a public property of a custom control

Exposing and setting SkinID using a public property of a custom control

2 posts, 0 answered
  1. Christopher
    Christopher avatar
    22 posts
    Registered:
    09 Jun 2008
    04 Sep 2008
    Link to this post
    I'm trying to expose a property to set the SkinID of a custom control at design time. The problem is that the skinid of a control can only be set in the Page_PreInit method which is not accessable since it's a page level not the control level. I did notice for some SiteFinity controls that there is a SkinID property available to set at design time (example: Site Tree View). How can I get this to set for a custom control? Is this even possible?

    http://www.sitefinity.com/ClientsFiles/081244_skins.JPG

    Thanks,
    Chris
  2. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    Registered:
    18 Jul 2012
    04 Sep 2008
    Link to this post
    I could be wrong but I think the rad controls use javascript to dynamically apply a theme after its loaded. my reasoning for this is that sometimes I see the default skin for a split second before my custom theme is applied. this is the "Skin" property, though, not the SkinID.

    SkinIDs are for ASP.NET themes. I believe in order to see at design time the .skin file with the SkinID informatino has to be defined within the page theme's folder
2 posts, 0 answered