Skip to main content

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

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