XafApplication.CustomProcessShortcut Event

Occurs when a View is created by its shortcut.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v18.2.dll


public event EventHandler<CustomProcessShortcutEventArgs> CustomProcessShortcut
Public Event CustomProcessShortcut As EventHandler(Of CustomProcessShortcutEventArgs)

Event Data

The CustomProcessShortcut event handler receives an argument of the CustomProcessShortcutEventArgs type.


This event is raised as a result of calling the XafApplication.ProcessShortcut method. You can handle this event to create a custom View when a specific shortcut is passed as the handler's CustomProcessShortcutEventArgs.Shortcut parameter. Set the created View to the CustomizePopupWindowParamsEventArgs.View parameter. To cancel the default View creation, set the Handled parameter to true.

public sealed partial class MySolutionModule : ModuleBase {
   // ...
    public override void Setup(XafApplication application) {
        application.CustomProcessShortcut += delegate (object sender, CustomProcessShortcutEventArgs e) {
            if ((e.Shortcut.ViewId == "MyDomainObject_ListView")) {
                IObjectSpace objectSpace = Application.CreateObjectSpace(e.Shortcut.ObjectClass);
                e.View = Application.CreateDashboardView(objectSpace, "MyDashboardView", true);
                e.Handled = true;
    // ...
See Also