fluentribbon / Fluent.Ribbon

WPF Ribbon control like in Office
http://fluentribbon.github.io
MIT License
2.56k stars 517 forks source link

Putting a Border around RibbonGroupsContainer to achieve RoundedCorners? #1032

Closed bquarta closed 2 years ago

bquarta commented 2 years ago

Hi there,

first of all: Thanks for the great work. Really appreciated :)

Lately I was trying to achieve a "New Office-Style"-Look and Feel and therefore wanted to have rounded Corners around my RibbonGroupsContainer.

Unfortunately this is a Panel and therefore I can't use a SetterProperty="Template" or anything on it. I also cannot wrap it in a Border Xaml-wise, since everything in the RibbonTabItem demands a RibbonGroupBox as direct child.

So, is there a way to achieve rounded Corners on (or to be exact "around") the RibbonGroupsContainer?


Environment

batzen commented 2 years ago

RibbonGroupsContainer is used inside a ScrollViewer. The style key for that ScrollViewer is Fluent.Ribbon.Styles.RibbonGroupsContainerScrollViewer, so it should be possible to re-style that one to achieve what you want.

bquarta commented 2 years ago

Awesome!

Exactly what I was looking for :)

Thanks for the swift reply.