All docs
V20.2
20.2
20.1
The page you are viewing does not exist in version 20.1. This link will take you to the root page.
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

EditorAppearanceProperties.ReadOnlyBackground Attached Property

Gets or sets the editor's background color when the editor is in the read-only state. This is an attached property.

Namespace: DevExpress.Xpf.Editors

Assembly: DevExpress.Xpf.Core.v20.2.dll

Declaration

Returns

Type Description
Brush

The editor's background brush when the editor is read-only.

Remarks

The following code sample specifies the ReadOnlyBackground and ReadOnlyBorderBrush properties.

<Window ...
    xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors">
    <StackPanel>
        <dxe:TextEdit IsReadOnly="True" EditValue="Custom ReadOnly"
                      dxe:EditorAppearanceProperties.ReadOnlyBackground="#FFECECEC"
                      dxe:EditorAppearanceProperties.ReadOnlyBorderBrush="#FF1E1E1E" />
    </StackPanel>
</Window>

ReadOnly - Appearance Properties

NOTE

The property is supported in the following DevExpress themes:

Theme Family Themes
Windows 10 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