Skip to main content
Bar

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

BarManager.AutoSaveInRegistry Property

Gets or sets a value indicating whether the bars’ layout is saved to and loaded from the system registry automatically.

Namespace: DevExpress.XtraBars

Assembly: DevExpress.XtraBars.v24.2.dll

NuGet Package: DevExpress.Win.Navigation

#Declaration

[DefaultValue(false)]
[DXCategory("Behavior")]
public bool AutoSaveInRegistry { get; set; }

#Property Value

Type Default Description
Boolean false

true if the bars’ layout is saved to and loaded from the system registry automatically; otherwise, false;

#Remarks

If the AutoSaveInRegistry property is set to true, the bars’ layout is automatically restored from and stored to the registry when the form that owns the bars is being loaded and closed, respectively. The registry path where the information is stored is specified by the BarManager.RegistryPath property.

Note that automatic saving/loading of settings works only if the Bar Manager belongs to a Form class instance. Otherwise, you may need to manually save/restore settings using, for instance, the BarManager.SaveToRegistry or BarManager.RestoreFromRegistry methods. It is also possible to store the settings in a stream and an XML file.

Refer to the Saving and Restoring a Bars Layout Automatically and Saving and Restoring a Bars Layout Manually documents for more information.

See Also