expressappframework-devexpress-dot-expressapp-dot-xafapplication-fdcd9aa8.md
Occurs when the Application Model instance returned by the XafApplication.Model property is changed.
Namespace : DevExpress.ExpressApp
Assembly : DevExpress.ExpressApp.v25.2.dll
NuGet Package : DevExpress.ExpressApp
public event EventHandler ModelChanged
Public Event ModelChanged As EventHandler
The ModelChanged event's data class is EventArgs.
Subscribe to this event to be notified when the Application Model is changed. For instance, this event is triggered when the Application Model is loaded for the first time and when the used differences are loaded or unloaded.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the ModelChanged 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.Setup(application);
application.ModelChanged += new EventHandler(application_ModelChanged);
}
See Also