XafApplication.ProcessShortcut(ViewShortcut) Method
Creates a View by a specified shortcut.
Namespace: DevExpress.ExpressApp
Assembly: DevExpress.ExpressApp.v24.1.dll
NuGet Package: DevExpress.ExpressApp
Declaration
Parameters
Name | Type | Description |
---|---|---|
shortcut | ViewShortcut | A ViewShortcut object that provides key information on the View to be created. |
Returns
Type | Description |
---|---|
View |
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.
Related GitHub Examples
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.