Fluent.Ribbon
Fluent.Ribbon copied to clipboard
How to disable word wrap in button header?
Hello.
thank you for your library!
How to disable word wrap in button header?
I want to see one line. Thank you!
Environment
- Fluent.Ribbon v6.1.0.326
- Windows 10
- .NET Framework 4.6.2
@batzen could you help me?
Thats currently not possible from the outside. What should happen instead? Should the button get wider?
I want control textbox size in button. For example set width so words will be inline
That's currently not possible because there are no properties to control that.
You could inherit from button and use OnApplyTemplate
to get the inner controls.
The template part you are interested in is called controlLabel
. That control is a Fluent:TwoLineLabel
and has a property called HasTwoLines
which you would want to set to false
.
That's currently not possible because there are no properties to control that. You could inherit from button and use
OnApplyTemplate
to get the inner controls. The template part you are interested in is calledcontrolLabel
. That control is aFluent:TwoLineLabel
and has a property calledHasTwoLines
which you would want to set tofalse
.
Hello
I know some other languages, but WPF is a beginner.
I'm experiencing the same this issue.
Is the only way to solve this issue is to inherit the button as you describe?
If XAML designers use RibbonTwoLineText.HasTwoLine as false, it will still be has word wrap.
best regards
You can use a non breaking space ( 
in XAML or \u00A0
in C#) instead of a regular space.
As the code in TwoLineLabel
only looks for regular spaces it won't break at a non breaking space character.