Closed f0xeri closed 3 years ago
@f0xeri Hi! I looked through the source code and realized that this happens due to the absence of the Background="{TemplateBinding Background} " parameter in the panel in line 43 here - Fluent Theme RibbonGroupBox or in line 44 here - Default Theme RibbonGroupBox. This is a develop-branch that supports Avalonia 10.0.
You can replace these lines:
<Panel Background="{TemplateBinding Background}">
<DockPanel Background="{TemplateBinding Background}">
You'll get something like this:
It works, thanks.
I've just integrated a fix for this into the develop
branch, which should cause the Background
property to be respected, as requested. Sorry for the inconvenience.
@f0xeri For future reference, could you please elaborate on your use case for this? It's always useful to know more about how people are using AvaloniaRibbon and how they would like to be able to use it, so that I can plan accordingly and better serve those needs.
Also @seljmov thank you for pointing out an interim solution.
Not at all, @Splitwirez, thank you for the project) I actively use AvaloniaUI in my project and am happy to help it with development)
Foreground works well, but background doesn't work for RibbonGroupBox. Color is unchangeble.