Back to Devexpress

XafApplication.ModelChanged Event

expressappframework-devexpress-dot-expressapp-dot-xafapplication-fdcd9aa8.md

latest2.3 KB
Original Source

XafApplication.ModelChanged Event

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

Declaration

csharp
public event EventHandler ModelChanged
vb
Public Event ModelChanged As EventHandler

Event Data

The ModelChanged event's data class is EventArgs.

Remarks

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.

XAF_how-to-show-filter-dialog-before-listview/CS/EFCore/DialogBeforeListViewEF/DialogBeforeListViewEF.Win/WinModule.cs#L29

csharp
base.Setup(application);
    application.ModelChanged += new EventHandler(application_ModelChanged);
}

See Also

XafApplication Class

XafApplication Members

DevExpress.ExpressApp Namespace