Back to Devexpress

EditorAppearanceProperties.ReadOnlyBorderBrush Attached Property

wpf-devexpress-dot-xpf-dot-editors-dot-editorappearanceproperties-10720edc.md

latest2.7 KB
Original Source

EditorAppearanceProperties.ReadOnlyBorderBrush Attached Property

Gets or sets the editor’s border brush when the editor is in the read-only state. This is an attached property.

Namespace : DevExpress.Xpf.Editors

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

NuGet Package : DevExpress.Wpf.Core

Declaration

See GetReadOnlyBorderBrush(DependencyObject) and SetReadOnlyBorderBrush(DependencyObject, Brush).

Returns

TypeDescription
Brush

The editor’s border brush when the editor is read-only.

|

Remarks

The following code sample specifies the ReadOnlyBorderBrush and ReadOnlyBackground properties.

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

Note

The property is supported in the following DevExpress themes:

Theme FamilyThemes
Windows 11Dark, Light
Windows 10Dark, Light
Office 2019Black, Colorful, Dark Gray, White, HighContrast
Visual Studio 2019Blue, Dark, Light
Office 2016 SEBlack, Colorful, Dark Gray, White
Visual Studio 2017Blue, Dark, Light

See Also

EditorAppearanceProperties Class

EditorAppearanceProperties Members

DevExpress.Xpf.Editors Namespace