wpf-devexpress-dot-xpf-dot-editors-dot-editorappearanceproperties-8386d7b3.md
Gets or sets the background brush of the CheckEdit, ToggleSwitch, or ToggleSwitchEdit when the editor is checked. This is an attached property.
Namespace : DevExpress.Xpf.Editors
Assembly : DevExpress.Xpf.Core.v25.2.dll
NuGet Package : DevExpress.Wpf.Core
See GetCheckedStateBackground(DependencyObject) and SetCheckedStateBackground(DependencyObject, Brush).
| Type | Description |
|---|---|
| Brush |
The editor’s background brush when the editor is checked.
|
The following code sample specifies the CheckedStateBackground , CheckBoxWidth, CheckBoxHeight, EditorAppearanceProperties.CheckEditGlyphBrush, and EditorAppearanceProperties.CheckedStateBorderBrush properties.
<Window ...
xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors">
<StackPanel>
<dxe:CheckEdit Margin="5" Padding="10,0,0,0"
BorderThickness="2" BorderBrush="#FF757575"
Content="Custom Appearance" CornerRadius="2"
CheckBoxHeight="18" CheckBoxWidth="18"
dxe:EditorAppearanceProperties.CheckEditGlyphBrush="White"
dxe:EditorAppearanceProperties.CheckedStateBackground="#FF6200EE"
dxe:EditorAppearanceProperties.CheckedStateBorderBrush="#FF6200EE" />
</StackPanel>
</Window>
Note
The property is supported in the following DevExpress themes:
| Theme Family | Themes |
|---|---|
| Windows 11 | Dark, Light |
| Windows 10 | Dark, Light |
| Office 2019 | Black, Colorful, Dark Gray, White, HighContrast |
| Visual Studio 2019 | Blue, Dark, Light |
| Office 2016 SE | Black, Colorful, Dark Gray, White |
| Visual Studio 2017 | Blue, Dark, Light |
See Also
EditorAppearanceProperties Class