Skip to main content
.NET 8.0+

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

ActionBase.QuickAccess Property

Specifies whether the current Action is accessible via the Quick Access Toolbar (this toolbar is available when the Ribbon UI is used).

Namespace: DevExpress.ExpressApp.Actions

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

#Declaration

[DefaultValue(false)]
public bool QuickAccess { get; set; }

#Property Value

Type Default Description
Boolean false

true, when the Action is accessible via the Quick Access Toolbar; otherwise - false.

#Remarks

The code below demonstrates how to add the New Action to the Quick Access Toolbar.

using DevExpress.ExpressApp;
using DevExpress.ExpressApp.SystemModule;

// ...
public class NewObjectActionController : WindowController {
    protected override void OnActivated() {
        base.OnActivated();
        NewObjectViewController newObjectViewController = Window.GetController<NewObjectViewController>();
        if(newObjectViewController != null) {
            newObjectViewController.NewObjectAction.QuickAccess = true;
        }
    }
}

The following image illustrates the New Action, accessible via the Quick Access Toolbar.

QuickAccessToolbar

The Quick Access Toolbar can be located either above or below the Ribbon. Its default location is above the Ribbon. The location can be changed via the toolbar’s context menu:

QuickAccessToolbar2

Note

The Ribbon UI can be enabled in the Windows Forms application via the Model Editor. To enable the Ribbon UI, set the Options node’s IModelOptionsWin.FormStyle property to Ribbon.

See Also