expressappframework-devexpress-dot-expressapp-dot-view-44700c94.md
Occurs after controls for a View are created.
Namespace : DevExpress.ExpressApp
Assembly : DevExpress.ExpressApp.v25.2.dll
NuGet Package : DevExpress.ExpressApp
public event EventHandler ControlsCreated
Public Event ControlsCreated As EventHandler
The ControlsCreated event's data class is EventArgs.
Handle the View.ControlsCreated event if you’ve manually set the DelayedViewItemsInitialization property to false.
Note
In most scenarios, handle the ControlCreated event instead. The View.ControlsCreated event may fire before the necessary controls are created for your View and the Control property may return null in the event handler. For more details, see DelayedViewItemsInitialization.
The following code snippets (auto-collected from DevExpress Examples) contain references to the ControlsCreated 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.
base.OnActivated();
View.ControlsCreated += View_ControlsCreated;
}
base.OnActivated();
View.ControlsCreated += new EventHandler(View_ControlsCreated);
}
MyBase.OnActivated()
AddHandler View.ControlsCreated, New EventHandler(AddressOf Me.View_ControlsCreated)
End Sub
See Also