The requested page is not available for the requested platform. You are viewing the content for Default platform.

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.v19.2.dll

Declaration

[DefaultValue(false)]
public bool QuickAccess { get; set; }
<DefaultValue(False)>
Public Property QuickAccess As Boolean

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