Supplies key information on a View.
Related API Members
The following members accept/return ViewShortcut objects:
A View Shortcut is a dictionary containing key/value pairs describing a View. Each key names a parameter describing a View, and has the associated value. For example, by default, a View Shortcut contains a key corresponding to the View identifier, the type of the object(s) displayed by the View, the key property value of the object displayed by the View and so on. This information is used to recreate a particular View in the future.
To create a View Shortcut, use the View.CreateShortcut method. To recreate a View based on the information provided by the View Shortcut, use the XafApplication.ProcessShortcut method. You can add custom key/value pairs to View Shortcuts when they are created, by handling the View.CustomizeViewShortcut event. However, generally, you should not modify values corresponding to keys already existing in just created View Shortcuts, as this information is used by XAF to support various built-in functionalities, and you can easily break it. To process custom key/value pairs when a View is recreated via the ProcessShortcut method, handle the XafApplication.CustomProcessShortcut event.
The following help topic contains examples of using View Shortcuts.
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the ViewShortcut class.
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.