Skip to main content
A newer version of this page is available. .

ListViewProcessCurrentObjectController.ShowObject(Object, ShowViewParameters, XafApplication, Frame, View) Method

Creates a Detail View for the currently selected object. Assigns the View to the ShowViewParameters.CreatedView property of the passed ShowViewParameters object.

Namespace: DevExpress.ExpressApp.SystemModule

Assembly: DevExpress.ExpressApp.v18.2.dll

Declaration

public static void ShowObject(
    object obj,
    ShowViewParameters showViewParameters,
    XafApplication application,
    Frame sourceFrame,
    View sourceView
)

Parameters

Name Type Description
obj Object

An object for which a Detail View must be created.

showViewParameters ShowViewParameters

A ShowViewParameters object used to invoke a Detail View for the specified object.

application XafApplication

An XafApplication object that provides methods and properties to manage the current application.

sourceFrame Frame

A Frame object that represents the Frame whose View contains the specified object.

sourceView View

A View object that represents the View which contains the specified object.

Remarks

This method is called when the ListViewProcessCurrentObjectController.ProcessCurrentObjectAction is executed. It creates a Detail View for the specified object. The Detail View is assigned to the ShowViewParameters object passed as the showViewParameters parameter. This causes the assigned View to be shown after the Action is executed (see ShowViewParameters).

An exception is thrown if the specified object is new and the source View is not nested.

If the source View is a read-only nested View, representing an aggregated collection, the created Detail View is set to read-only.

This method is static. You can call it in the Execute event handler of your Action, passing the object and ShowViewParameters specified by the event handler’s parameters. In this instance, a Detail View for the passed object will be invoked after your Action has been executed.

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ShowObject(Object, ShowViewParameters, XafApplication, Frame, View) 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