Change Group Border

3 posts, 0 answers
  1. Robert
    Robert avatar
    4 posts
    Member since:
    Dec 2015

    Posted 10 Feb Link to this post

    Hello 

    I would like to remove the top and bottom border of each ribbon group at run time for a cleaner look. Have tried this in the form constructor with no success. Any ideas?

    Dim myRibbonBarTab As RibbonTab = CType(Me.RadRibbonBar1.CommandTabs(0), RibbonTab)

    For Each group As RadRibbonBarGroup In myRibbonBarTab.Items
            group.GroupBorder.BoxStyle = BorderBoxStyle.FourBorders
            group.GroupBorder.TopWidth = 0
            group.GroupBorder.BottomWidth = 0
    Next

     

    Thanks for any tips that point me in the right direction.

    Robert

     

     

     

  2. Dimitar
    Admin
    Dimitar avatar
    1414 posts

    Posted 11 Feb Link to this post

    Hello Robert,

    Thank you for writing.

    You should set the PaintUsingParentShape property as well:
    Me.radRibbonBarGroup1.GroupBorder.BoxStyle = Telerik.WinControls.BorderBoxStyle.FourBorders
    Me.radRibbonBarGroup1.GroupBorder.TopWidth = 0
    Me.radRibbonBarGroup1.GroupBorder.BottomWidth = 0
    Me.radRibbonBarGroup1.GroupBorder.PaintUsingParentShape = False
    Me.radRibbonBarGroup1.GroupBorder.LeftColor = Color.Red
    Me.radRibbonBarGroup1.GroupBorder.RightColor = Color.Red

    Let me know if I can assist you further.
     
    Regards,
    Dimitar
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Robert
    Robert avatar
    4 posts
    Member since:
    Dec 2015

    Posted 11 Feb in reply to Robert Link to this post

    Hi Dimitar,

    It works. That was indeed the missing bit. Thank you.

    Robert 

     

Back to Top