RadToolbar with windows11 theme

1 Answer 55 Views
ToolBar
Deltaohm
Top achievements
Rank 3
Bronze
Iron
Iron
Deltaohm asked on 12 Apr 2023, 03:31 PM

Hi,
I would like to use windows11 theme in my application, but when apply the theme every buttons in the toolbars are loaded of large padding and large margin.
Since I don't like this layout I can change it setting properties inside every button, but if I try to setting a style it is ignored.
I think that toolbar apply a style and overwrite my one.

Can I modify the layout without change every button in my application?

Thank you

Luigi

1 Answer, 1 is accepted

Sort by
0
Stenly
Telerik team
answered on 17 Apr 2023, 06:34 AM

Hello Luigi,

May I ask if you could try utilizing the ItemContainerStyleSelector property of the RadToolBar control? It will allow you to apply a Style to the desired elements, which will prevent the need for modifying each element separately.

The following article provides a bit more information regarding the ItemContainerStyleSelector property:

WPF ToolBar - Styling RadToolBar - Telerik UI for WPF

With this being said, I hope the provided information will be of help to you.

Regards,
Stenly
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
ToolBar
Asked by
Deltaohm
Top achievements
Rank 3
Bronze
Iron
Iron
Answers by
Stenly
Telerik team
Share this question
or