Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BorderBush on bottom of RibbonTabItem (and Ribbon) #535

Closed
scauthen opened this issue Feb 21, 2018 · 2 comments
Closed

BorderBush on bottom of RibbonTabItem (and Ribbon) #535

scauthen opened this issue Feb 21, 2018 · 2 comments
Assignees
Milestone

Comments

@scauthen
Copy link

scauthen commented Feb 21, 2018

I am trying to create a menu without the border on the top and bottom. In order to keep the Tab at the from having small notches (extension lines) at the bottom (see first image), I used the following Resource Style. This works great in removing the notches at the bottom however, how I have a border at the bottom which I would like to remove. Is this possible? Could you please advice?
Thank you so much for your time!

<SolidColorBrush x:Key="Fluent.Ribbon.Brushes.RibbonTabItem.BorderBrush" Color="#2b579a" />

Without Border:
noborder

With Border:
withborder


Environment

  • Fluent.Ribbon V6.1.0.233
  • Windows 10
  • .NET Framework 4.5.2
@batzen
Copy link
Member

batzen commented Feb 22, 2018

Those notches shouldn't even be there.
Will have a look at this as soon as i got time.

@batzen batzen self-assigned this Feb 22, 2018
@batzen batzen added this to the 7.0.0 milestone Feb 22, 2018
@scauthen
Copy link
Author

I found a work around by using the following code. Basically, I set the BorderBrush to White which matches the window area below the ribbon and then set the SolidBrushColor on the RibbonTabItem to the color of my Ribbon background.

<Style TargetType="{x:Type Fluent:RibbonTabItem}">
        <Setter Property="Height" Value="30" />
        <Setter Property="BorderThickness" Value="1,1,1,1" />
        <Setter Property="BorderBrush" Value="White" />
</Style>
<SolidColorBrush x:Key="Fluent.Ribbon.Brushes.RibbonTabItem.BorderBrush" Color="{DynamicResource ColorDark}" />

Thank you for the quick response!

@batzen batzen closed this as completed in b5cbf7a Mar 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants