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

RibbonCheckBoxStyleSettings.PressedTextForeground Property

Gets or sets a RibbonCheckBox text’s pressed state foreground. 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 PressedTextForeground { get; set; }

Property Value

Type Description
Brush

A brush that describes the pressed RibbonCheckBox text’s foreground.

Remarks

The following code sample changes the RibbonCheckBox‘s pressed 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="True" IsChecked="False">
                            <dxr:RibbonCheckBox.StyleSettings>
                                <dxr:RibbonCheckBoxStyleSettings PressedBackground="#220E7835"
                                                                 PressedTextForeground="#770E7835" 
                                                                 PressedBorderBrush="#550E7835" /> 
                            </dxr:RibbonCheckBox.StyleSettings>
                        </dxr:RibbonCheckBox>
                    </dxr:RibbonGroup>
                </dxr:RibbonTab>
            </dxr:RibbonControl.Tabs>
        </dxr:RibbonControl>
    </Grid>
</Window>

WinUI Ribbon CheckBox - Pressed Colors

See Also