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

RibbonButtonStyleSettings.CheckedBorderBrush Property

Gets or sets a checked RibbonToggleButton‘s border brush. 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 CheckedBorderBrush { get; set; }

Property Value

Type Description
Brush

The checked RibbonToggleButton‘s border brush.

Remarks

The following code sample sets the RibbonToggleButton‘s CheckedBackground and CheckedBorderBrush colors to green:

<Window ...
    xmlns:dxr="using:DevExpress.WinUI.Ribbon"
    xmlns:dxc="using:DevExpress.WinUI.Core">
    <StackPanel>
        <dxr:RibbonControl>
            <dxr:RibbonControl.Tabs>
                <dxr:RibbonTab Caption="Home">
                    <dxr:RibbonGroup Caption="File">
                        <dxr:RibbonToggleButton Content="Bold">
                            <dxr:RibbonToggleButton.LargeIcon>
                                <dxc:DXSymbolIconSource Symbol="Bold"/>
                            </dxr:RibbonToggleButton.LargeIcon>
                            <dxr:RibbonToggleButton.StyleSettings>
                                <dxr:RibbonButtonStyleSettings CheckedBorderBrush="#FF0E7835" 
                                                               CheckedBackground="#AA0E7835" 
                                                               BorderThickness="2"/> 
                            </dxr:RibbonToggleButton.StyleSettings>
                        </dxr:RibbonToggleButton>
                    </dxr:RibbonGroup>
                </dxr:RibbonTab>
            </dxr:RibbonControl.Tabs>
        </dxr:RibbonControl>
    </StackPanel>
</Window>

Ribbon Button - Checked Border Colors

See Also