RibbonButtonStyleSettings.CheckedDisabledForeground Property
In This Article
Gets or sets a RibbonToggleButton‘s disabled state foreground when the button 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 button’s foreground when the button is checked. |
#Remarks
The following code sample sets the RibbonToggleButton‘s CheckedDisabledBackground, CheckedDisabledBorderBrush, and CheckedDisabledForeground 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>
See Also