Themes for derived controls

Last post 11-08-2005 12:08 PM by SimonCal. 3 replies.

Sort Posts:

  • Themes for derived controls

    11-04-2005, 3:00 PM
    • Member
      240 point Member
    • aaguiar
    • Member since 06-18-2002, 8:53 AM
    • Montevideo, Uruguay
    • Posts 23
    I have a set of controls that inherit GridView. I want to apply the same Theme properties to them. Is it possible?

    It looks that I need to define the theme properties for each subclass.

    Thanks

    Andres
  • Re: Themes for derived controls

    11-07-2005, 4:35 PM
    • Participant
      1,910 point Participant
    • SimonCal
    • Member since 06-10-2002, 4:43 PM
    • Posts 381
    • AspNetTeam
      Moderator
    You'll need to include a <%@ register tag for your custom controls in the theme, as you do in your pages. Then you can add a skin for them
    Simon
    This posting is provided "AS IS" with no warranties, and confers no rights.
  • Re: Themes for derived controls

    11-08-2005, 8:20 AM
    • Member
      240 point Member
    • aaguiar
    • Member since 06-18-2002, 8:53 AM
    • Montevideo, Uruguay
    • Posts 23
    I'm sorry, I wasn't clear enough.

    I have two asp.net controls that inherit from GridView CustomerGridView : GridView, ProductGridView: GridView.

    I want to apply the same skin to both. The only way I am able to do it is to define a skin for each subclass. I want to skin 'GridView' and use it for both subclasses.

    Thanks
  • Re: Themes for derived controls

    11-08-2005, 12:08 PM
    • Participant
      1,910 point Participant
    • SimonCal
    • Member since 06-10-2002, 4:43 PM
    • Posts 381
    • AspNetTeam
      Moderator
    Unfortunbately, you'll need a skin for both
    Simon
    This posting is provided "AS IS" with no warranties, and confers no rights.
Page 1 of 1 (4 items)