Back to Devexpress

RibbonPageGroup.Enabled Property

windowsforms-devexpress-dot-xtrabars-dot-ribbon-dot-ribbonpagegroup-2dfbc0b2.md

latest2.8 KB
Original Source

RibbonPageGroup.Enabled Property

Gets or sets whether the current RibbonPageGroup is enabled.

Namespace : DevExpress.XtraBars.Ribbon

Assembly : DevExpress.XtraBars.v25.2.dll

NuGet Package : DevExpress.Win.Navigation

Declaration

csharp
[DefaultValue(true)]
[DXCategory("Behavior")]
[XtraSerializableProperty]
public virtual bool Enabled { get; set; }
vb
<DefaultValue(True)>
<XtraSerializableProperty>
<DXCategory("Behavior")>
Public Overridable Property Enabled As Boolean

Property Value

TypeDefaultDescription
Booleantrue

true if the current RibbonPageGroup is enabled; otherwise, false.

|

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.

winforms-scheduler-synchronize-appointments-with-outlook-365/CS/DXOutlook365Sync/Form1.cs#L49

csharp
void UpdateRibbonUI(bool enabled) {
    outlookSyncRibbonPageGroup.Enabled = enabled;
    initBarButtonItem.Enabled = !enabled;

winforms-scheduler-synchronize-appointments-with-outlook-365/VB/DXOutlook365Sync/Form1.vb#L52

vb
Private Sub UpdateRibbonUI(ByVal enabled As Boolean)
    outlookSyncRibbonPageGroup.Enabled = enabled
    initBarButtonItem.Enabled = Not enabled

See Also

RibbonPageGroup Class

RibbonPageGroup Members

DevExpress.XtraBars.Ribbon Namespace