Creates a Detail View for the currently selected object. Assigns the View to the ShowViewParameters.CreatedView property of the passed ShowViewParameters object.
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 )
An object for which a Detail View must be created.
A ShowViewParameters object used to invoke a Detail View for the specified object.
An XafApplication object that provides methods and properties to manage the current application.
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.