fluentribbon / Fluent.Ribbon

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

How to set the border color for the tab during mouseover? #753

Open DaveInCaz opened 4 years ago

DaveInCaz commented 4 years ago

I have been trying to figure out how to set the border color of the tab item itself when it is highlighted due to a mouseover. Currently what I have working is the following:

No mouseover:

image

Mouseover of Tab2: image

As you can see in the mouseover case, there is no border at all (or a white border perhaps).

Which SolidColorBrush x:Key is used to control that border color? I looked through all the *Border* entries in https://github.com/fluentribbon/Fluent.Ribbon/blob/develop/Fluent.Ribbon/Themes/Themes/Theme.Template.xaml but none seem to affect it. Unless I missed it somehow.

Thank you!


Environment

batzen commented 4 years ago

There currently is no real border on mouse over. The mouse over border template part has a border thickness of 0.

DaveInCaz commented 4 years ago

Thanks for looking into it.

A suggestion would be to have a nonzero border but default its color to the same as the tab background. That way it would consider to look / work as it does now, by default, but would allow customization.

Personally I don't think custom alterations to the border thickness value would be needed.