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

IModelAction.Shortcut Property

Defines the keyboard shortcut used to execute the current Action. Has effect in WinForms applications only.

Namespace: DevExpress.ExpressApp.Model

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

#Declaration

string Shortcut { get; set; }

#Property Value

Type Description
String

A string specifying the current Action’s shortcut.

#Remarks

You can change or look up the Shortcut property’s value for each Action in the ActionDesign | Actions | <Action> node in the Model Editor.

IModelActionProperties-Shortcuts

This property derives its value from the ActionBase.Shortcut property, which defines default shortcuts.

Assign one of the following string values to the Shortcut property:

The table below contains default shortcuts that you can use to execute Actions in XAF Windows Forms Applications.

Action Shortcut
NavigateBack AltLeftArrow
NavigateForward AltRightArrow
New CtrlN
Save CtrlS
Delete CtrlD
SaveAndClose Control+Enter
Refresh F5
EditModel CtrlShiftF1
Print (from the Printing Module) CtrlP
Open (from the FileAttachments module) CtrlO
SaveTo (from the FileAttachments module) CtrlShiftS
See Also