RibbonButtonStyleSettings.CheckedHoverBackground Property
In This Article
Gets or sets a RibbonToggleButton‘s hovered state background 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 CheckedHoverBackground { get; set; }
#Property Value
Type | Description |
---|---|
Brush | A brush that describes the hovered ribbon button’s background when the button is checked. |
#Remarks
The following code sample sets the RibbonToggleButton‘s CheckedBackground, CheckedPressedBackground, and CheckedHoverBackground 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">
<dxr:RibbonToggleButton.LargeIcon>
<dxc:DXSymbolIconSource Symbol="Bold"/>
</dxr:RibbonToggleButton.LargeIcon>
<dxr:RibbonToggleButton.StyleSettings>
<dxr:RibbonButtonStyleSettings CheckedBackground="#440E7835"
CheckedHoverBackground="#BB0E7835"
CheckedPressedBackground="#FF0E7835"/>
</dxr:RibbonToggleButton.StyleSettings>
</dxr:RibbonToggleButton>
</dxr:RibbonGroup>
</dxr:RibbonTab>
</dxr:RibbonControl.Tabs>
</dxr:RibbonControl>
</StackPanel>
</Window>
See Also