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

RibbonButtonStyleSettings.HoverBorderBrush Property

Gets or sets a ribbon button’s hovered state border brush. 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 HoverBorderBrush { get; set; }

Property Value

Type Description
Brush

A brush that describes the hovered ribbon button’s border.

Remarks

You can use this property to customize the appearance of the following ribbon buttons:

The following code sample changes the RibbonButton‘s HoverForeground and HoverBorderBrush 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:RibbonButton Content="Open">
                            <dxr:RibbonButton.SmallIcon>
                                <dxc:DXSymbolIconSource Symbol="OpenFile" />
                            </dxr:RibbonButton.SmallIcon>
                            <dxr:RibbonButton.StyleSettings>
                                <dxr:RibbonButtonStyleSettings HoverBorderBrush="#770E7835" 
                                                               HoverForeground="#FF0E7835" 
                                                               BorderThickness="2"/> 
                            </dxr:RibbonToggleButton.StyleSettings>
                            </dxr:RibbonButton.StyleSettings>
                        </dxr:RibbonButton>
                    </dxr:RibbonGroup>
                </dxr:RibbonTab>
            </dxr:RibbonControl.Tabs>
        </dxr:RibbonControl>
    </Grid>
</Window>

WinUI RibbonButton - Hover Colors

See Also