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

Change RadPageView Titlebar into bold

2 Answers 311 Views
PageView
This is a migrated thread and some comments may be shown as answers.
NourElDeen
Top achievements
Rank 1
NourElDeen asked on 11 May 2013, 03:39 AM
Hello,

I'm using the RadPageView component with the "strip" ViewMode.
I'd like to change the title bar which indicates the active page into bold, but I didn't found any usefull property, nor any UI element in the Visual Style Builder.

How should I do this ?

Best regards
NourElDeen

2 Answers, 1 is accepted

Sort by
0
Accepted
Paul
Telerik team
answered on 13 May 2013, 02:45 PM
Hello NourElDeen,

Thank you for writing.

You can access the title bar text from the code as well as from the style builder. I am sending you a small project which will give you an idea about both approaches.

The idea with the code is to access the StripViewItemLayout, this is where your pages will be stored. You can do this through the RadPageViewStripElement. Once you access the item layout you will have to subscribe for some event, in this case I have used MouseDown, but you can use other if necessary for your project and just set the font of the clicked item to bold.

Regarding the style builder approach, there you will have to do the following. On RadPageViewStripItem.Selcted, RadPageViewStripItem.MouseDown (optional), RadPageViewStripItem.MouseOver select the font style to bold. If you decide to style the RadPageViewStripItem.MouseDown state you will have to select the StripViewItemForeColor option from the Repository window. Make sure you reset all other to regular.

That should do it. Feel free to use whichever approach suits your project best.

I am attaching here the project, the customized theme and a screenshot of the style builder showing what to work on.

Hope this helps.

Kind regards,
Paul
the Telerik team
RadChart for WinForms is obsolete. Now what?
0
NourElDeen
Top achievements
Rank 1
answered on 17 May 2013, 03:57 PM
Hello Paul ,

Thank you for reply,

Yes, Paul your example working perfect with me :)

Kind regards,
NourElDeen
Tags
PageView
Asked by
NourElDeen
Top achievements
Rank 1
Answers by
Paul
Telerik team
NourElDeen
Top achievements
Rank 1
Share this question
or