Skip to main content
.NET 6.0+

XafApplication.ObjectSpaceCreated Event

Occurs after an Object Space has been created via the XafApplication.CreateObjectSpace method.

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v23.2.dll

NuGet Package: DevExpress.ExpressApp

Declaration

public event EventHandler<ObjectSpaceCreatedEventArgs> ObjectSpaceCreated

Event Data

The ObjectSpaceCreated event's data class is ObjectSpaceCreatedEventArgs. The following properties provide information specific to this event:

Property Description
ObjectSpace Gets the Object Space.

Remarks

If you need to access the Object Space created for a particular View, handle the ObjectSpaceCreated event and use its ObjectSpaceCreatedEventArgs.ObjectSpace parameter.

Note that nested Object Spaces are created via the XPObjectSpace.CreateNestedObjectSpace method. So, the ObjectSpaceCreated event is not raised when a nested Object Space is created.

The following code snippets (auto-collected from DevExpress Examples) contain references to the ObjectSpaceCreated event.

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