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

Overriding width of button does not work as it should #284

Closed
Cyerus opened this issue Mar 22, 2016 · 0 comments
Closed

Overriding width of button does not work as it should #284

Cyerus opened this issue Mar 22, 2016 · 0 comments
Assignees
Milestone

Comments

@Cyerus
Copy link

Cyerus commented Mar 22, 2016

Environment

  • Fluent.Ribbon v3.6.1 / v4.0.0-beta
  • Theme All
  • Windows 10
  • .NET Framework 4.5

I'm trying to overrule the default width of a button, but I'm not having much success.
It seems the length of the text is leading. However, I would like to overrule this behaviour by setting a fixed width, so that buttons with less text (less width) can be set to the same width as buttons with more text.

Considering the following example;

<Fluent:RibbonGroupBox Header="Group" Height="84" Width="500">
    <Fluent:Button Name="buttonGreen" Header="Green Long Name" Icon="Images\Icon1.png" LargeIcon="Images\Icon1.png" Width="100" />
    <Fluent:Button Name="buttonRed" Header="Red" Icon="Images\Icon2.png" LargeIcon="Images\Icon2.png" Width="100" />
</Fluent:RibbonGroupBox>

I have 2 button-areas, both set to 100 width. One with a large header, the other having a short header. However, each actual button inside this 'buttons-area' is smaller.

Is there any way to change this behaviour?

@batzen batzen added this to the 4.0.0 milestone Mar 23, 2016
@batzen batzen self-assigned this Mar 23, 2016
@batzen batzen closed this as completed in d702ae8 Mar 23, 2016
@batzen batzen changed the title Overrule a buttons width Overriding width of button does not work as it should Mar 23, 2016
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