.NET Framework 4.5.2+
.NET Framework 4.5.2+
.NET Standard 2.0+
.NET Core 3.0+

XafApplication.ObjectSpaceCreated Event

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

Namespace: DevExpress.ExpressApp

Assembly: DevExpress.ExpressApp.v19.2.dll

Declaration

public event EventHandler<ObjectSpaceCreatedEventArgs> ObjectSpaceCreated
Public Event ObjectSpaceCreated As EventHandler(Of ObjectSpaceCreatedEventArgs)
public event EventHandler<ObjectSpaceCreatedEventArgs> ObjectSpaceCreated
Public Event ObjectSpaceCreated As EventHandler(Of ObjectSpaceCreatedEventArgs)
public event EventHandler<ObjectSpaceCreatedEventArgs> ObjectSpaceCreated
Public Event ObjectSpaceCreated As EventHandler(Of ObjectSpaceCreatedEventArgs)

Event Data

The ObjectSpaceCreated event handler receives an argument of the ObjectSpaceCreatedEventArgs type. 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.

See Also