Skip to main content

RibbonSeparatorStyleSettings.Background Property

Gets or sets a RibbonSeparator‘s background. This is a dependency property.

Namespace: DevExpress.WinUI.Ribbon

Assembly: DevExpress.WinUI.Ribbon.v23.2.dll

NuGet Package: DevExpress.WinUI

Declaration

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

Property Value

Type Description
Brush

A brush that describes the RibbonSeparator‘s background.

Remarks

Use the Background property to specify the color of the RibbonSeparator.

<Window ...
    xmlns:dxr="using:DevExpress.WinUI.Ribbon"
    xmlns:dxc="using:DevExpress.WinUI.Core">
    <Grid>
        <dxr:RibbonControl>
            <dxr:RibbonControl.Tabs>
                <dxr:RibbonTab Caption="Home">
                    <dxr:RibbonGroup Caption="File">
                        <!-- ... -->
                        <dxr:RibbonSeparator>
                            <dxr:RibbonSeparator.StyleSettings>
                                <dxr:RibbonSeparatorStyleSettings Background="#770E7835"/>
                            </dxr:RibbonSeparator.StyleSettings>
                        </dxr:RibbonSeparator>
                    </dxr:RibbonGroup>
                </dxr:RibbonTab>
            </dxr:RibbonControl.Tabs>
        </dxr:RibbonControl>
    </Grid>
</Window>

WinUI Ribbon Separator - Background Color

See Also