RibbonTabHeaderStyleSettings.NormalBackground Property
In This Article
Gets or sets a ribbon tab header’s normal state background. This is a dependency property.
Namespace: DevExpress.WinUI.Ribbon
Assembly: DevExpress.WinUI.Ribbon.v23.2.dll
NuGet Package: DevExpress.WinUI
#Declaration
#Property Value
Type | Description |
---|---|
Brush | A brush that describes the normal ribbon tab header’s background. |
#Property Paths
You can access this nested property as listed below:
Object Type | Path to Normal |
---|---|
Ribbon |
|
#Remarks
The following code sample changes the RibbonTab‘s colors:
<Window ...
xmlns:dxr="using:DevExpress.WinUI.Ribbon"
xmlns:dxc="using:DevExpress.WinUI.Core">
<Grid>
<dxr:RibbonControl>
<dxr:RibbonControl.Tabs>
<dxr:RibbonTab Caption="Home">
<!-- ... -->
<dxr:RibbonTab.StyleSettings>
<dxr:RibbonTabHeaderStyleSettings HoverForeground="#FF0E7835"
HoverBackground="#990E7835"
NormalBackground="#440E7835"
NormalForeground="#770E7835" />
</dxr:RibbonTab.StyleSettings>
</dxr:RibbonTab>
<dxr:RibbonTab Caption="Export">
<!-- ... -->
<dxr:RibbonTab.StyleSettings>
<dxr:RibbonTabHeaderStyleSettings SelectedBackground="#99780000"
SelectedForeground="#FF780000" />
</dxr:RibbonTab.StyleSettings>
</dxr:RibbonTab>
</dxr:RibbonControl.Tabs>
</dxr:RibbonControl>
</Grid>
</Window>
See Also