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

BorderThickness of RibbonTabControlControlTemplate #743

Closed
znakeeye opened this issue Sep 16, 2019 · 3 comments
Closed

BorderThickness of RibbonTabControlControlTemplate #743

znakeeye opened this issue Sep 16, 2019 · 3 comments

Comments

@znakeeye
Copy link

RibbonTabControlControlTemplate should have customizable border thickness. I'd like to remove the border (like in modern Office), but it seems quite tricky due to a mistake in the control template.

I believe you should have BorderThickness="{TemplateBinding MarginPropertyOfYourChoice}" instead of hard-coding it to "0,1,0,1":

<Border x:Name="border"
        HorizontalAlignment="Stretch"
        Margin="0,-1,0,0"
        Width="Auto"
        BorderThickness="0,1"

Environment

  • Fluent.Ribbon v?.?.?
  • Windows ?
  • .NET Framework ?.?
@batzen
Copy link
Member

batzen commented Sep 17, 2019

Will consider this for a future version.

@batzen batzen self-assigned this Sep 17, 2019
@batzen batzen added this to the Next milestone Sep 17, 2019
@znakeeye
Copy link
Author

A workaround is to set a margin on RibbonTabItem:

<Style TargetType="{x:Type fluent:RibbonTabItem}" BasedOn="{StaticResource RibbonTabItemStyle}">
    <Setter Property="Margin" Value="0 0 0 1" />
</Style>

@batzen batzen removed their assignment Oct 3, 2020
@batzen batzen removed this from the Future milestone Oct 3, 2020
@batzen
Copy link
Member

batzen commented Jun 16, 2023

Will be part of #957

@batzen batzen closed this as completed Jun 16, 2023
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