RibbonCheckBoxStyleSettings.CheckedDisabledForeground Property
In This Article
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.v23.2.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 Ribbon |
#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>
See Also