The requested page is not available for the requested platform. You are viewing the content for Default platform.

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.v19.1.dll

Declaration

public static void ShowObject(
    object obj,
    ShowViewParameters showViewParameters,
    XafApplication application,
    Frame sourceFrame,
    View sourceView
)
Public Shared Sub ShowObject(
    obj As Object,
    showViewParameters As ShowViewParameters,
    application As XafApplication,
    sourceFrame As Frame,
    sourceView As View
)

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.

See Also