RibbonButtonStyleSettings.CheckedBorderBrush Property
In This Article
Gets or sets a checked RibbonToggleButton‘s border brush. 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 | The checked Ribbon |
#Remarks
The following code sample sets the RibbonToggleButton‘s CheckedBackground and CheckedBorderBrush 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 CheckedBorderBrush="#FF0E7835"
CheckedBackground="#AA0E7835"
BorderThickness="2"/>
</dxr:RibbonToggleButton.StyleSettings>
</dxr:RibbonToggleButton>
</dxr:RibbonGroup>
</dxr:RibbonTab>
</dxr:RibbonControl.Tabs>
</dxr:RibbonControl>
</StackPanel>
</Window>
See Also