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

RibbonCheckBoxStyleSettings.DisabledBorderBrush Property

Gets or sets a RibbonCheckBox‘s disabled state 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 DisabledBorderBrush { get; set; }

Property Value

Type Description
Brush

A brush that describes the disabled RibbonCheckBox‘s border.

Remarks

The following code sample changes the RibbonCheckBox‘s disabled colors to green:

<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:RibbonCheckBox Text="Ruler" IsEnabled="False" IsChecked="False">
                            <dxr:RibbonCheckBox.StyleSettings>
                                <dxr:RibbonCheckBoxStyleSettings DisabledBackground="#220E7835"
                                                                 DisabledTextForeground="#770E7835" 
                                                                 DisabledBorderBrush="#550E7835" /> 
                            </dxr:RibbonCheckBox.StyleSettings>
                        </dxr:RibbonCheckBox>
                    </dxr:RibbonGroup>
                </dxr:RibbonTab>
            </dxr:RibbonControl.Tabs>
        </dxr:RibbonControl>
    </Grid>
</Window>

WinUI Ribbon CheckBox - Disabled Colors

See Also