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

PanelControl.UseDisabledStatePainter Property

Gets or sets whether to stress the control’s disabled state with a semi-transparent gray layer that overlaps the control.

Namespace: DevExpress.XtraEditors

Assembly: DevExpress.Utils.v24.2.dll

NuGet Packages: DevExpress.Utils, DevExpress.Wpf.Core

#Declaration

[Browsable(false)]
[DXCategory("Appearance")]
public bool UseDisabledStatePainter { get; set; }

#Property Value

Type Default Description
Boolean false

true, to paint a semi-transparent gray layer above the control in the disabled state; otherwise, false

#Remarks

When you disable a PanelControl or its descendant with the Enabled property, all child controls that reside within this panel are disabled. Set the UseDisabledStatePainter property to true to accentuate the control’s disabled state with an additional semi-transparent gray layer that overlaps the control. This layer grays out the panel’s border and title (for panels with titles, e.g., the GroupControl).

image

See Also