Gradient on contentpanel?

2 posts, 0 answers
  1. RP Brongers
    RP Brongers avatar
    1 posts
    Member since:
    Jan 2007

    Posted 04 Jan 2007 Link to this post

    Hi,

    When you set the EnableTabControlMode to true, the tabItemXX.ContentPanels appear, of which the BackColor can then be set. How do I create a gradient on that panel, preferably using the Visual Style/Theme Builder? The contentpanels do not show up in the Children/Control Structure.
    If this is not possible, what would be the preferred way to create gradient tab-contentpages?

    (I am using the current 2006Q4 versions)

    Reinhard
  2. Mike
    Admin
    Mike avatar
    640 posts

    Posted 04 Jan 2007 Link to this post

    Hi RP,

    Actually the ContentPanel that appears in the tabstrip content  area is a generic Windowsforms Panel control, and cannot be customized easily to display gradient background. That's why, by default, the content panel is transparent so it just displays the TabBase-gradient as a background. And you can customize the TabBase-fill element with the VSB application. If you need per-tabItem background customization, you can do it in the code-behind, handling the TabSelected event. You can access all the features of the gradient-fill primitive, like BackColor2, GradientStyle, etc, through the radTabStrip.TabElement.TabContent property. Hope you'll have fun customizing the control as you wish.
     

    Regards,
    Mike
    the telerik team
  3. UI for WinForms is Visual Studio 2017 Ready
Back to Top