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

Customize Unselected Page Title

6 Answers 56 Views
PageView
This is a migrated thread and some comments may be shown as answers.
Paul B
Top achievements
Rank 2
Paul B asked on 04 Mar 2014, 08:44 PM
I would like to update a RadPageView which is in the Stack ViewMode to have the selected and selected page titles look the same. In the attached screenshot I would like to have "Page 1" and "Page 2" appear the same (i.e. blue background with white text). I can't seem to find the properties to set the colors (background and foreground) and font to achieve what I want.

How can I customize the RadPageViewPage titles?

6 Answers, 1 is accepted

Sort by
0
Stefan
Telerik team
answered on 05 Mar 2014, 02:27 PM
Hello Paul,

Thank you for writing.

RadPageViewPage has a property Item, from where you can access the tab and introduce the desired modifications. Here is an example:
radPageView1.Pages[0].Item.BackColor = Color.Red;
radPageView1.Pages[0].Item.GradientStyle = GradientStyles.Solid;

I hope this helps.

Regards,
Stefan
Telerik

DevCraft Q1'14 is here! Join the free online conference to see how this release solves your top-5 .NET challenges. Reserve your seat now!

0
Paul B
Top achievements
Rank 2
answered on 05 Mar 2014, 03:45 PM
That worked fine provided that I don't have a Theme defined for the RadPageView control. I am unable to override any of those properties if a Theme is set. It's not a huge issue but the use case would be that I like a Theme but want to only change the BackColor of the RadPageView. Is that possible?
0
Stefan
Telerik team
answered on 05 Mar 2014, 04:01 PM
Hi Paul,

The local settings as the ones I suggested will always override the theme settings, no matter the theme that you have set. If you have different behavior, please let me know how can I reproduce it, so I can investigate it.

Thank you in advance for your time and cooperation.

Regards,
Stefan
Telerik

DevCraft Q1'14 is here! Join the free online conference to see how this release solves your top-5 .NET challenges. Reserve your seat now!

0
Paul B
Top achievements
Rank 2
answered on 05 Mar 2014, 04:31 PM
I am definitely seeing the behavior of having the properties you listed not take affect. I put a RadPageView into Stack mode and set the Theme to TelerikMetroBlue. Then in the Form constructor, after InitializeComponent() I try and set the properties that you listed above. The new values do not take affect.
0
Accepted
Stefan
Telerik team
answered on 06 Mar 2014, 06:46 AM
Hi Paul,

Thank you for the additional details. The case where you use the mentioned theme and the settings are not applied is because in this theme the DrawFill property of the element is not set to true, which is the needed value in order to allow the back color of the item to be painted. Please set this property as well and you should be good:
radPageView1.Pages[0].Item.DrawFill = true;
radPageView1.Pages[0].Item.BackColor = Color.Red;
radPageView1.Pages[0].Item.GradientStyle = GradientStyles.Solid;

Let me know how this works for you.

Regards,
Stefan
Telerik

DevCraft Q1'14 is here! Join the free online conference to see how this release solves your top-5 .NET challenges. Reserve your seat now!

0
Paul B
Top achievements
Rank 2
answered on 07 Mar 2014, 04:58 PM
That did the trick!

Thanks!
Tags
PageView
Asked by
Paul B
Top achievements
Rank 2
Answers by
Stefan
Telerik team
Paul B
Top achievements
Rank 2
Share this question
or