Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

RepositoryItem.AppearanceDisabled Property

Gets appearance settings used to paint the editor when it is disabled.

Namespace: DevExpress.XtraEditors.Repository

Assembly: DevExpress.XtraEditors.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DXCategory("Appearance")]
public virtual AppearanceObject AppearanceDisabled { get; }

#Property Value

Type Description
AppearanceObject

A AppearanceObject object which provides the appearance setting used to paint the editor when it’s disabled.

#Remarks

The editor is disabled when its Enabled property is set to false. Use the AppearanceDisabled property to specify the background and foreground colors and the font settings used to paint the disabled editor and its contents.

The appearance settings of the enabled editor are specified by the RepositoryItem.Appearance property.

For more information on appearances, see the Application Appearance and Skin Colors document.

Important

In Advanced Mode or when the WXI Skin is applied, use the Appearance.BackColor property to specify the editor’s background color. Other appearance settings that specify the background color of the editor in different states are ignored (for example, the AppearanceReadOnly.BackColor, AppearanceFocused.BackColor, AppearanceDisabled.BackColor).

if (textEdit1.Properties.ReadOnly) {
    textEdit1.Properties.Appearance.BackColor = Color.LightGray;
}
See Also