Skip to main content
A newer version of this page is available. .

RibbonTabHeaderStyleSettings.NormalBackground Property

Gets or sets a ribbon tab header’s normal state background. This is a dependency property.

Namespace: DevExpress.WinUI.Ribbon

Assembly: DevExpress.WinUI.Ribbon.v22.1.dll

NuGet Package: DevExpress.WinUI

Declaration

[DP(null, Handler = "OnContentChanged")]
public Brush NormalBackground { get; set; }

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 NormalBackground
RibbonTab
.StyleSettings .NormalBackground

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>

WinUI Ribbon CheckBox - Pressed Colors

See Also