Customize Unselected Page Title

7 posts, 1 answers
  1. Paul B
    Paul B avatar
    15 posts
    Member since:
    May 2013

    Posted 04 Mar 2014 Link to this post

    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?
  2. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 05 Mar 2014 Link to this post

    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!

  3. UI for WinForms is Visual Studio 2017 Ready
  4. Paul B
    Paul B avatar
    15 posts
    Member since:
    May 2013

    Posted 05 Mar 2014 in reply to Stefan Link to this post

    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?
  5. Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 05 Mar 2014 Link to this post

    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!

  6. Paul B
    Paul B avatar
    15 posts
    Member since:
    May 2013

    Posted 05 Mar 2014 in reply to Stefan Link to this post

    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.
  7. Answer
    Stefan
    Admin
    Stefan avatar
    2891 posts

    Posted 06 Mar 2014 Link to this post

    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!

  8. Paul B
    Paul B avatar
    15 posts
    Member since:
    May 2013

    Posted 07 Mar 2014 in reply to Stefan Link to this post

    That did the trick!

    Thanks!
Back to Top
UI for WinForms is Visual Studio 2017 Ready