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

Gradient on contentpanel?

1 Answer 130 Views
Tabstrip (obsolete as of Q2 2010)
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
RP Brongers
Top achievements
Rank 1
RP Brongers asked on 04 Jan 2007, 12:42 PM
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

1 Answer, 1 is accepted

Sort by
0
Mike
Telerik team
answered on 04 Jan 2007, 04:59 PM
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
Tags
Tabstrip (obsolete as of Q2 2010)
Asked by
RP Brongers
Top achievements
Rank 1
Answers by
Mike
Telerik team
Share this question
or