RibbonButtonStyleSettings.CheckedDisabledBorderBrush Property
In This Article
Gets or sets a disabled RibbonToggleButton‘s border brush 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 CheckedDisabledBorderBrush { get; set; }
#Property Value
Type | Description |
---|---|
Brush | The disabled Ribbon |
#Remarks
The following code sample sets the RibbonToggleButton‘s CheckedDisabledBackground, CheckedDisabledForeground, and CheckedDisabledBorderBrush 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" IsEnabled="False" IsChecked="True">
<dxr:RibbonToggleButton.LargeIcon>
<dxc:DXSymbolIconSource Symbol="Bold"/>
</dxr:RibbonToggleButton.LargeIcon>
<dxr:RibbonToggleButton.StyleSettings>
<dxr:RibbonButtonStyleSettings CheckedDisabledBorderBrush="#770E7835"
CheckedDisabledBackground="#220E7835"
BorderThickness="2"
CheckedDisabledForeground="#AA505050"/>
</dxr:RibbonToggleButton.StyleSettings>
</dxr:RibbonToggleButton>
</dxr:RibbonToggleButton>
</dxr:RibbonGroup>
</dxr:RibbonTab>
</dxr:RibbonControl.Tabs>
</dxr:RibbonControl>
</StackPanel>
</Window>
See Also