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

change bakground color of tabs

1 Answer 355 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.
Hamid
Top achievements
Rank 1
Hamid asked on 06 Feb 2013, 01:19 PM
Hi
I use radpageView in my project that have many pages in it.and use the telerik Metrothem for that.now I want to change tab's background color from its default (Green) to another color.How Do this ?in which property?
thank you

1 Answer, 1 is accepted

Sort by
0
Accepted
Plamen
Telerik team
answered on 11 Feb 2013, 09:51 AM
Hello Hamid,

Thank you for writing.

RadPageView uses separate styles for its different modes. Here is how you can define the color of the selected page header in StripView mode:

1. Open the desired theme in Visual Style Builder (Loading predefined themes) and select the RadPageViewStripItem elements in the control's structure - RadPageView - RadPageViewStripElement - StripViewItemContainer - StripViewItemLayout - RadPageViewStripItem.

2. Since the element uses ImageShape, you have to change the image used for the following states:
- RadPageViewStripItem.Selected;
- RadPageViewStripItem.Selected.MouseOver;
- RadPageViewStripItem.Selected.MouseDown.

For example to make it red please follow these steps:
- Create an image 1 px by 1 px with paint and color this pixel in red
- Select the Selected state of the RAdPageVireStripItem
- Click the Show Only Applied Repositories check box
- Double click the PageViewItemSelectedImageShape repository
- Set the red pixel image to the Image property
- Set the PaintMode to Tile

Attached you can find a sample red image.

Here are some links you might find useful:

I hope this helps.

Kind regards,
Plamen
the Telerik team
Q3'12 SP1 of RadControls for WinForms is out now. See what's new.
Tags
Tabstrip (obsolete as of Q2 2010)
Asked by
Hamid
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or