Skip to main content
.NET 6.0+

ISupportStoreSettings.SaveSettings() Method

Saves a Template’s settings previously changed by an end-user to the child nodes of the Application Model‘s Templates node. These child nodes were previously specified by the ISupportStoreSettings.SetSettings method.

Namespace: DevExpress.ExpressApp.Templates

Assembly: DevExpress.ExpressApp.v24.1.dll

NuGet Package: DevExpress.ExpressApp

Declaration

void SaveSettings()

Remarks

Template customizations that have been made by an end-user must be saved to the Application Model’s Template node. For this purpose, the SaveSettings method is called when a Template is disposed of. The nested structure of this node must be specified by the ISupportStoreSettings.SetSettings method, which is invoked earlier - when creating a Template. The saved customizations are then applied to the Template by calling the ISupportStoreSettings.SetSettings method again.

Physically, the customizations are stored in the Model.User.xafml file. When a Template is created, the Template node customizations from this file are passed to the ISupportStoreSettings.SetSettings method, to be applied to the Template. So, if you remove this file, the Template node structure must be recreated by the ISupportStoreSettings.SetSettings method.

Note

UI customizations can only be saved in Windows Forms applications.

See Also