LayoutGroup.Enabled Property
Gets or sets whether layout items that belong to the current group are enabled.
Namespace: DevExpress.XtraLayout
Assembly: DevExpress.XtraLayout.v24.2.dll
Declaration
[DefaultValue(true)]
[DXCategory("Behavior")]
[XtraSerializableProperty]
[XtraSerializablePropertyId(300)]
public bool Enabled { get; set; }
Property Value
Type | Default | Description |
---|---|---|
Boolean | true | true if layout items that belong to the current group are enabled; otherwise, false. |
Remarks
Setting the Enabled property to false disables the controls displayed by the layout items in the current group and its nested groups. Setting the Enabled property back to true restores the original values of the controls’ Enabled properties.
Note
At design time, setting a group’s Enabled property to false disables the group’s controls. If this property has been set to false at design time, setting it back to true at runtime doesn’t enable the group’s controls. In this instance, you’ll need to manually enable the group’s controls.
When a group is represented as a tab within a TabbedControlGroup, you can disable the tab via the LayoutGroup.PageEnabled property.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the Enabled property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.