RibbonButtonStyleSettings.DisabledForeground Property
In This Article
Gets or sets a ribbon button’s disabled state foreground. 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 disabled ribbon button’s foreground. |
#Remarks
You can use this property to customize the appearance of the following ribbon buttons:
The following code sample sets the DisabledBackground and DisabledForeground 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:RibbonButton Content="Open" ItemType="SmallWithText" IsEnabled="False">
<dxr:RibbonButton.SmallIcon>
<dxc:DXSymbolIconSource Symbol="OpenFile" />
</dxr:RibbonButton.SmallIcon>
<dxr:RibbonButton.StyleSettings>
<dxr:RibbonButtonStyleSettings DisabledBackground="#2200B25A"
DisabledForeground="#770E7835" />
</dxr:RibbonButton.StyleSettings>
</dxr:RibbonButton>
</dxr:RibbonGroup>
</dxr:RibbonTab>
</dxr:RibbonControl.Tabs>
</dxr:RibbonControl>
</StackPanel>
</Window>
See Also