Skip to main content
A newer version of this page is available. .

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.v19.2.dll

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).

See Also