Occurs before creating a new object of the type selected in the NewObjectViewController.NewObjectAction's control.
This event can be handled to do the following:
To determine the type of the object to be created, use the handler's ObjectCreatingEventArgs.ObjectType parameter.
The WebApplication.OptimizationSettings.AllowFastProcessObjectsCreationActions option can influence the ObjectCreating event. Disable this option as described in the Faster rendering and other performance optimizations for popular Web UI scenarios in XAF KB article, if you face any difficulty when custom processing selected items is implemented in this event handler (e.g., difficulty with the default UI elements rendering or behavior).
To see an example of how to handle the ObjectCreating event, refer to the How to: Limit the Amount of Objects Created using the New Action topic.