Back to Devexpress

ActionBase.QuickAccess Property

expressappframework-devexpress-dot-expressapp-dot-actions-dot-actionbase-f4ff789d.md

latest2.9 KB
Original Source

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

NuGet Package : DevExpress.ExpressApp

Declaration

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

Property Value

TypeDefaultDescription
Booleanfalse

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.

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

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:

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

ActionBase Class

ActionBase Members

DevExpress.ExpressApp.Actions Namespace