RadPanel with item hilight

1 Answer 37 Views
PanelBar
Deltaohm
Top achievements
Rank 3
Bronze
Iron
Iron
Deltaohm asked on 11 Jul 2023, 01:23 PM | edited on 11 Jul 2023, 01:28 PM

Hi,

I have the RadPanelBar in figure:

I would like to draw a border around all the items inside a RadPanelBarItem. If I set border in RadPanelBarItem I get the effect as in figure: only the header is bordered while the inside items are not.
My purpose id to hilight the item not the header, is there any way to achieve this?

Thank you

Luigi

1 Answer, 1 is accepted

Sort by
0
Accepted
Dinko
Telerik team
answered on 14 Jul 2023, 01:03 PM

Hello Luigi,

Thank you for contacting us.

To set a border around the RadPanelBarItem controls, you can extract the default control template and modify it. In the Control Template, wrap the root Grid with  a Border and set the BorderBrush and BorderThickness to the desired ones. 

<ControlTemplate TargetType="telerikNavigation:RadPanelBarItem" x:Key="CustomPanelBarItemTopLevelTemplate">
	<Border BorderBrush="LightGreen" BorderThickness="1 2 1 1">
		<Grid x:Name="RootElement" SnapsToDevicePixels="True"

I attached a zip file with simple solution.

If you have any further questions, please contact me.

Regards,
Dinko
Progress Telerik

Love the Telerik and Kendo UI products and believe more people should try them? Invite a fellow developer to become a Progress customer and each of you can get a $50 Amazon gift voucher.

Tags
PanelBar
Asked by
Deltaohm
Top achievements
Rank 3
Bronze
Iron
Iron
Answers by
Dinko
Telerik team
Share this question
or