Skip to main content
.NET 8.0+

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

WinApplication.SaveModelChanges() Method

In This Article

Saves the Application Model changes made by an end-user, up to the current moment, to the storage (Model.User.xafml file, by default).

Namespace: DevExpress.ExpressApp.Win

Assembly: DevExpress.ExpressApp.Win.v24.2.dll

#Declaration

public override void SaveModelChanges()

#Remarks

Overrides the XafApplication.SaveModelChanges method. By default, this method is called when the application is closed. So, all the changes made from the application start until the end are saved to the Model.User.xafml file. You can call this method at any time during the application run. For example, you can implement an Action that allows end-users to save the changes made up to the current moment. To prevent saving changes at the end of the application run, set the WinApplication.IgnoreUserModelDiffs property to true.

You can save user changes to another storage; for example, to the database. For this purpose, handle the XafApplication.CreateCustomUserModelDifferenceStore event.

See Also