Skip to main content
.NET 6.0+

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