Posted 15 years ago
by Jon von Gillern
Version: 10.1.0515
Platform: .NET 3.5
Environment: Windows 7 (64-bit)
Its probable that I'm just "missing something". But it is my expectation that when I change the background brush on a ribbon group presenter or a ribbon group, that the control will be painted with the specified brush. This doesn't seem to happen with the ribbon controls, am I supposed to edit them somewhere else?
If I edit the background on the DockPanel that host the group presenter, it seems to be visible in the background of the group presenter, ribbon buttons seem to work as expected. So it is almost as if GroupPresenter and Group are "stuck" on being transparent.
This is the result of the above xaml: http://imgur.com/qaarH
<DockPanel Background="Pink">
<ribbon:GroupPresenter DockPanel.Dock="Top" Background="Blue" >
<ribbon:Group Label="Project" IsCollapsible="False" Background="Black">
<ribbon:Button Label="New" />
<ribbon:Button Label="Open" Background="Purple" />
</ribbon:Group>
</ribbon:GroupPresenter>
</DockPanel>
This is the result of the above xaml: http://imgur.com/qaarH