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

Enable TextTrimming in Button Header #1034

Closed
Taldrit78 opened this issue Jun 10, 2022 · 0 comments
Closed

Enable TextTrimming in Button Header #1034

Taldrit78 opened this issue Jun 10, 2022 · 0 comments

Comments

@Taldrit78
Copy link

Taldrit78 commented Jun 10, 2022

At this very moment it seems that the header of a button (and togglebutton) only supports string-bindings, even if the header is of type object.
Is there a way we could use "TextTrimming" (which is normally a property of a TextBlock)?
We are binding a variable to the HeaderProperty and that could be in some cases very long. So we want to trim it and show the full text in the TooltipProperty.
It would be really cool if there were only some simple properties like the TextTrimming, TextWrapping and maybe a simplifying of the number of lines. So not using 2 different styles but only a property that allows to wrap to 2 lines and then automatically trims (depending on the TextTrimming) to CharTrimming or WordTrimming or none.


Environment

  • Fluent.Ribbon v8.0.3
  • Windows 10 21H2
  • .NET Framework 4.8
@batzen batzen self-assigned this Jun 11, 2022
@batzen batzen added this to the 10.0 milestone Jun 11, 2022
batzen added a commit that referenced this issue Jun 29, 2022
@batzen batzen closed this as completed Jul 10, 2022
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