RibbonControl.AutoSaveLayoutToXml Property
Gets or sets whether the current RibbonControl‘s auto-save layout feature is enabled.
Namespace: DevExpress.XtraBars.Ribbon
Assembly: DevExpress.XtraBars.v20.1.dll
NuGet Package: DevExpress.Win.Navigation
Declaration
[DXCategory("Behavior")]
[DefaultValue(false)]
[XtraSerializableProperty]
public bool AutoSaveLayoutToXml { get; set; }
Property Value
Type | Default | Description |
---|---|---|
Boolean | false | A Boolean value indicating whether the current RibbonControl‘s auto-save layout feature is enabled. |
Remarks
An end-user can customize a RibbonControl at runtime if the RibbonControl.AllowCustomization property is set to true. A customized ribbon layout can be saved to a specific XML file by a user via the Ribbon Customization Window. You can also enable the auto-save layout feature via the AutoSaveLayoutToXml property. If the AutoSaveLayoutToXml is set to true, a ribbon layout will be automatically saved to the specific XML file (see the RibbonControl.AutoSaveLayoutToXmlPath property) when the parent form is closed. If the auto-save path is not defined, the RibbonControl.InvalidSaveRestoreLayoutException event is fired.