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

XafApplication.ProcessShortcut(ViewShortcut) Method

Creates a View by a specified shortcut.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v24.2.dll

NuGet Package: DevExpress.ExpressApp

#Declaration

public View ProcessShortcut(
    ViewShortcut shortcut
)

#Parameters

Name Type Description
shortcut ViewShortcut

A ViewShortcut object that provides key information on the View to be created.

#Returns

Type Description
View

A View object that represents the View to be created.

#Remarks

A shortcut represent the key information on a View: object type, key property value of the View’s current object and ID. You can use a shortcut to create a View. To do this, call the ProcessShortcut method passing the required shortcut. This method will create an Object Space (see BaseObjectSpace) and a List View or Detail View in it. The View type and other View settings are set from the Application Model‘s Views | View node which is specified by the ViewShortcut.ViewId property. For example, this method is used in the ViewNavigationController that stores the shortcuts of the Views displayed in the current Window.

If you need to create a custom View by a shortcut, handle the XafApplication.CustomProcessShortcut event which is raised when the ProcessShortcut method is called.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ProcessShortcut(ViewShortcut) method.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also