RibbonCheckBoxStyleSettings.HoverBackground Property
In This Article
Gets or sets a RibbonCheckBox‘s hovered state background. This is a dependency property.
Namespace: DevExpress.WinUI.Ribbon
Assembly: DevExpress.WinUI.Ribbon.v23.2.dll
NuGet Package: DevExpress.WinUI
#Declaration
#Property Value
Type | Description |
---|---|
Brush | A brush that describes the hovered Ribbon |
#Remarks
The following code sample changes the RibbonCheckBox‘s hover 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 HoverBackground="#220E7835"
HoverTextForeground="#770E7835"
HoverBorderBrush="#550E7835" />
</dxr:RibbonCheckBox.StyleSettings>
</dxr:RibbonCheckBox>
</dxr:RibbonGroup>
</dxr:RibbonTab>
</dxr:RibbonControl.Tabs>
</dxr:RibbonControl>
</Grid>
</Window>
See Also