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

Change Group Border

2 Answers 73 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
Robert
Top achievements
Rank 1
Iron
Robert asked on 10 Feb 2016, 11:17 PM

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 Answers, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 11 Feb 2016, 12:38 PM
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
0
Robert
Top achievements
Rank 1
Iron
answered on 11 Feb 2016, 02:20 PM

Hi Dimitar,

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

Robert 

 

Tags
RibbonBar
Asked by
Robert
Top achievements
Rank 1
Iron
Answers by
Dimitar
Telerik team
Robert
Top achievements
Rank 1
Iron
Share this question
or