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

RibbonButtonStyleSettings.CheckedDisabledBackground Property

Gets or sets a RibbonToggleButton‘s disabled state background when the button 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 CheckedDisabledBackground { get; set; }

Property Value

Type Description
Brush

A brush that describes the disabled ribbon button’s background when the button is checked.

Remarks

The following code sample sets the RibbonToggleButton‘s CheckedDisabledForeground, CheckedDisabledBorderBrush, and CheckedDisabledBackground 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" IsEnabled="False" IsChecked="True">
                            <dxr:RibbonToggleButton.LargeIcon>
                                <dxc:DXSymbolIconSource Symbol="Bold"/>
                            </dxr:RibbonToggleButton.LargeIcon>
                            <dxr:RibbonToggleButton.StyleSettings>
                                <dxr:RibbonButtonStyleSettings CheckedDisabledBorderBrush="#770E7835" 
                                                               CheckedDisabledBackground="#220E7835" 
                                                               BorderThickness="2" 
                                                               CheckedDisabledForeground="#AA505050"/> 
                            </dxr:RibbonToggleButton.StyleSettings>
                        </dxr:RibbonToggleButton>
                        </dxr:RibbonToggleButton>
                    </dxr:RibbonGroup>
                </dxr:RibbonTab>
            </dxr:RibbonControl.Tabs>
        </dxr:RibbonControl>
    </StackPanel>
</Window>

Ribbon Button - Checked Disabled Colors

See Also