Change RadPageView Titlebar into bold

3 posts, 1 answers
  1. NourElDeen
    NourElDeen avatar
    2 posts
    Member since:
    May 2013

    Posted 10 May 2013 Link to this post

    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. Answer
    Paul
    Admin
    Paul avatar
    60 posts

    Posted 13 May 2013 Link to this post

    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?
  3. UI for WinForms is Visual Studio 2017 Ready
  4. NourElDeen
    NourElDeen avatar
    2 posts
    Member since:
    May 2013

    Posted 17 May 2013 Link to this post

    Hello Paul ,

    Thank you for reply,

    Yes, Paul your example working perfect with me :)

    Kind regards,
    NourElDeen
Back to Top