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
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