You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is in relation to #551:
After I change the font size the ribbon does not automatically "re-arrange" the items and it looks the following - again crazy example to make it obvious:
If you then somehow trigger a "redraw", e.g. by changing the window size just 1px it is correct again:
To fix this "by code" I did the following (window is our window which inherits RibbonWindow and has a Ribbon property which grants access to the actual ribbon control):
Until yesterday we targeted .NET 4.6.1 and the following worked:
Forcing the template to be applied again might cause issues.
You will face a lot of issues when trying to fully allow dynamic font sizes.
Why don't you simply add zooming to your application? That way icons also get larger etc.
I will have a look at how to improve the situation out of the box as it should manly be caused by caching measures for RibbonGroupBox and it's children.
It's not a use case, that the font-size is "fully dynamic" or changed "all the time" it's more or less a "one time setting" and we just want to allow our customers to change them in some degree (the extreme examples I postet where just for testing) as we had some requests from customers and it was a "nice by-product" of the themes we just implemented and aside from these two issues it worked "out of the box".
But "zooming" is also a good (additional) idea - especially when using our software in a presentation via a projector.
Very likely the font(-size) options will become only a hidden feature we just change for customers "on request" to avoid "glitches", but non the less it should basically work IMO...
Thanks for looking into it!
batzen
changed the title
How to update control arrangement after size change?
RibbonGroupBox should resize when font family or size are changed
Apr 1, 2018
This is in relation to #551:
After I change the font size the ribbon does not automatically "re-arrange" the items and it looks the following - again crazy example to make it obvious:
If you then somehow trigger a "redraw", e.g. by changing the window size just 1px it is correct again:
To fix this "by code" I did the following (
window
is our window which inheritsRibbonWindow
and has aRibbon
property which grants access to the actual ribbon control):Until yesterday we targeted .NET 4.6.1 and the following worked:
Then we updated to target .NET 4.7.1 and it got stuck on the
Measure
call, but the following does work now:Is this the correct way to do this or is there a better way?
The text was updated successfully, but these errors were encountered: