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.1.dll
NuGet Package: DevExpress.ExpressApp
Declaration
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.
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.