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

RibbonCheckBoxStyleSettings.CheckedDisabledForeground Property

Gets or sets a RibbonCheckBox‘s disabled state foreground when the checkbox is checked. 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 CheckedDisabledForeground { get; set; }

Property Value

Type Description
Brush

A brush that describes the disabled RibbonCheckBox‘s foreground when the checkbox is checked.

Remarks

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

<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="True">
                            <dxr:RibbonCheckBox.StyleSettings>
                                <dxr:RibbonCheckBoxStyleSettings CheckedDisabledTextForeground="#AA78350E"
                                                                 CheckedDisabledBackground="#5578350E" 
                                                                 CheckedDisabledForeground="#AA78350E" 
                                                                 CheckedDisabledBorderBrush="#7778350E"/> 
                            </dxr:RibbonCheckBox.StyleSettings>
                        </dxr:RibbonCheckBox>
                    </dxr:RibbonGroup>
                </dxr:RibbonTab>
            </dxr:RibbonControl.Tabs>
        </dxr:RibbonControl>
    </Grid>
</Window>

WinUI CheckBox - Checked Disabled Colors

See Also